Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41391 - "emerge --update --fetchonly --pretend world" show URLs for already (correctly) downloaded but not installed yet files.
Summary: "emerge --update --fetchonly --pretend world" show URLs for already (correctl...
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
Depends on:
Reported: 2004-02-12 09:31 UTC by Vitaly
Modified: 2004-03-02 13:04 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly 2004-02-12 09:31:53 UTC
I use gentoo on slow internel link (home) and can't download packages. I make the list of URLs at home and download them at work on the fast internet.

at home I execute:
"emerge --update --fetchonly --pretend world 2>urls_for_download.txt"
it output urls to STDERR! 8-( it is not important.

This command print urls of all packages wanted to install even if it is already downloaded to /usr/portage/distfiles and has correct md5

Reproducible: Always
Steps to Reproduce:
1. emerge sync
2. emerge --update --fetchonly --pretend world
3. download all listed packages to /usr/portage/distfiles by hands
4. emerge --update --fetchonly --pretend world

Actual Results:  
output of step 2 equivalent to output of step 4

Expected Results:  
output of step 4 must be empty (without urls)
Comment 1 SpanKY gentoo-dev 2004-03-02 06:23:38 UTC
read about '-nc' in wget
Comment 2 SpanKY gentoo-dev 2004-03-02 06:24:16 UTC
Bug 41926 handles the fact URL's are printed to stderr
Comment 3 Vitaly 2004-03-02 13:04:23 UTC
emerge -pf world 2>&1 | awk '/md5 src_uri ;-)/{okfiles[$NF]=1} /\/[:alnum:]/{nf=split($1,a,"/");wanted[a[nf]]=$0} END {for (f in wanted) if (!(f in okfiles)) {split(wanted[f],a);print a[1]} }'

*REAL* work around
Thanks to Xavier Neys