On 1/11/07, RedShift <[EMAIL PROTECTED]> wrote:
> Imho that's all a bit useless. The topic starter just wanted to know the
> individual package sizes. These days hard drive space is cheap and even
> if you check out a package's size you'll install it anyway because you
> searched for it in the first place, indicating a need.
>
> It'll just add unnecessary code to the relevant tools, overhead which
> slowly leads to bloat.
Hardly a slipppery slope. It'll add next to no code to pacman itself,
the complication is in the database generation scripts. makepkg is
already storing the uncompressed size when it builds packages.
>From makepkg (pacman2.9.8-4 and pacman3 CVS):
size=`du -cb $startdir/pkg | tail -n 1 | awk '{print $1}'`
....
echo "size = $size" >>.PKGINFO
The complication that's most likely preventing this from being added,
is gensync and the scripts that are used to generate the repo files on
archlinux.org. These use the PKGBUILD, not the information inside the
package, and then just get the compressed size. So, because the db
doesnt have this information, pacman doesnt know it for uninstalled
apps.
There was some discussion about moving to a script that builds the db
from the packages -- for other reasons, not exclusively for this
feature, from which we could implement this feature very easily,
however it's not been of great importance.
> pacman is a package manager. It should do just that and certainly
> nothing more.
This won't stop it being a package manager. That's a silly argument
just because you have no personal use for this feature. Have respect
to others who may -- it does have some clear reasons for usage and
discussion.
If you'd like pacman to be --just-- a package manager, then let's
strip all sorts of other fields, like compressed size, things that
arent essential for a package manager to fulfill it's core task.
James
--
iphitus // Arch Developer // kernel26beyond // iphitus.loudas.com
_______________________________________________
arch mailing list
[email protected]
http://www.archlinux.org/mailman/listinfo/arch