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.
Created attachment 2576 [details] My perl script to get remaining download size.
Created attachment 2577 [details] IGNORE ABOVE: My perl script to show remaining package download size.
carpaski, can this functionality be better integrated into your fetching queueing code for portage?
*** Bug 4984 has been marked as a duplicate of this bug. ***
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.
emerge -s package as of 2.0.44