Re: New APT version
>>"Jason" == Jason Gunthorpe <email@example.com> writes:
Jason> APT check that there is enough space to download the archive
Jason> files and presents you with a value that indicates how much
Jason> more space you will need. Unfortunately since systems can have
Jason> strange ways of mounting things I can't actually check that
Jason> value, it is up to you to be sure that you have xxx meg free
Jason> on the relevent partitions - but it does say before hand how
Jason> much is needed.
Well, there are ways to get around that. Look at the checkdu
script I mailed -- It looks at df output, looking for /dev/* and does
a stat on hte mount points, getting a device_no (man 2 stat).
Then it looks at the du -S output for the package, and assign
each dir to the correct device_no -- VOILA, no matter how you have
partitioned stuff, checkdu can tell exactly how much space is needed
on each partion.
I can even make checkdu warn if there is not enough space; all
that is needed for this functionality is that the package maintainer
provide the du -S data.
I think this is important enough to warrant that the data be
collected; we can easily write dh_sizeinfo or whatever to create the
properly formatted du -S file; I shall undertake to write the
checking method for apt (written using just the essential perl-base
Is this important to people? I can have the method for apt by
the weekend. APT itself would need to be modified to call this
method; but that should be easy.
who personally thinks this should be done
"Bond reflected that good Americans were fine people and that most of
them seemed to come from Texas." Ian Fleming, "Casino Royale"
Manoj Srivastava <firstname.lastname@example.org> <http://www.datasync.com/%7Esrivasta/>
Key C7261095 fingerprint = CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E
To UNSUBSCRIBE, email to email@example.com
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org