Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5566 - Show total download size before starting
Summary: Show total download size before starting
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
: 4984 (view as bug list)
Depends on: 9699
Blocks:
  Show dependency tree
 
Reported: 2002-07-25 10:49 UTC by Alex Walker
Modified: 2011-10-30 22:21 UTC (History)
3 users (show)

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


Attachments
My perl script to get remaining download size. (pkg-dlsize.pl,677 bytes, application/octet-stream)
2002-07-25 10:50 UTC, Alex Walker
Details
IGNORE ABOVE: My perl script to show remaining package download size. (pkg-dlsize.pl,677 bytes, text/plain)
2002-07-25 10:54 UTC, Alex Walker
Details
Slightly better script (it works now too) (pkg-dlsize.pl,2.02 KB, text/plain)
2002-07-31 09:20 UTC, Alex Walker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Walker 2002-07-25 10:49:44 UTC
I'm normally not on a modem link, so I hadn't noticed this until now when
I'm stuck on the end of 56k and downloads are horribly slow...

When emerging stuff, you receieve no indication of the TOTAL download
required for the package to be installed (including dependencies).  Also for
world updates etc, to see how much is going to be downloaded for the
upgrade.

Something like this attachment could get the total for a package... I know it's
in perl, but I don't know python.

Currently it:
i)    Takes 2 arguments - first being the package (e.g. "media-sound/festival")
and the second being it's version (e.g. "1.4.2")
ii)   It checks the files in the digest against those in the distfiles
directory, and totals up those with no matching MD5 sum.

It's perl... it's slow... but it works.
Comment 1 Alex Walker 2002-07-25 10:50:41 UTC
Created attachment 2576 [details]
My perl script to get remaining download size.
Comment 2 Alex Walker 2002-07-25 10:54:46 UTC
Created attachment 2577 [details]
IGNORE ABOVE: My perl script to show remaining package download size.
Comment 3 Brandon Low (RETIRED) gentoo-dev 2002-07-25 20:59:21 UTC
carpaski, can this functionality be better integrated into your fetching
queueing code for portage?
Comment 4 Maurizio Disimino 2002-07-31 09:15:05 UTC
*** Bug 4984 has been marked as a duplicate of this bug. ***
Comment 5 Alex Walker 2002-07-31 09:20:51 UTC
Created attachment 2707 [details]
Slightly better script (it works now too)

I've fiddled a little more now, and now you can use the -d option (has to be
first argument now) so it'll show you what it's doing.

Major problems:
- Uses digest file to predict sizes - not all these files are used in the
relative ebuild.
- Can only put in one package at a time.

Hey - I like it.
Comment 6 Nicholas Jones (RETIRED) gentoo-dev 2002-11-14 05:58:12 UTC
emerge -s package
as of 2.0.44