Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10520 - [enhancement] inst.size and tgz.size in "emerge search"
Summary: [enhancement] inst.size and tgz.size in "emerge search"
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-10 07:40 UTC by phoen][x
Modified: 2011-10-30 22:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
portage-phoenix.tar.bz2 (portage-phoenix.tar.bz2,44.63 KB, application/octet-stream)
2002-11-10 07:42 UTC, phoen][x
Details

Note You need to log in before you can comment on or make changes to this bug.
Description phoen][x 2002-11-10 07:40:35 UTC
Hey nick,

this is my size hack for portage. It works like that:
Every time you merge a package, portage writes the size for each "obj" into
CONTENTS (portage.py - mergeme()). If you run "emerge search", it'll use
portage.py getcontents() to get those new values. Thats pretty much it. The
tgz.size simply parses ${FILESDIR}/digest-{} and calculates a sum.

The proper result looks like this:
* media-sound/xmms
     Latest version available: 1.2.7-r1
     Latest version installed: 1.2.7-r1
     [...]
     tgz.size: 2808 kB
     inst.size: 4155 kB

An old db record looks like that (database not updated, size misses):
* media-plugins/xmms-crossfade
     Latest version available: 0.2.9
     Latest version installed: 0.2.9
     [...]
     tgz.size: 195 kB
     inst.size: [ Old Database ]

Not installed packages look like that:
* media-plugins/xmms-dflowers
     Latest version available: 1.2
     Latest version installed: [ Not Installed ]
     [...]
     tgz.size: 46 kB
     inst.size: [ Not Installed ]

Thats all for now. If you like this feature, i'll make it more portage compliant
(eg, create methods like gettgzsize() and getinstsize() in portage.py  rather
than doing that in /usr/bin/emerge).

I'll attach a bzipped emerge and portage.py.

-phoen][x-
Comment 1 phoen][x 2002-11-10 07:42:01 UTC
Created attachment 5529 [details]
portage-phoenix.tar.bz2

A patched Portage 2.0.43.
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2002-11-13 00:05:31 UTC
Ok... We got part... The other part I think is better for an external script.