Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 5566

Summary: Show total download size before starting
Product: Portage Development Reporter: Alex Walker <alex>
Component: UnclassifiedAssignee: Nicholas Jones (RETIRED) <carpaski>
Status: RESOLVED FIXED    
Severity: normal CC: davoid, h3y, mholzer
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 9699    
Bug Blocks:    
Attachments: My perl script to get remaining download size.
IGNORE ABOVE: My perl script to show remaining package download size.
Slightly better script (it works now too)

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