Hello all
Some times ago was possible to use command like emerge --nospinner -uD -pf world 2>&1 | output_parser
example from Xavier Neys: emerge --nospinner -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)) {print wanted[f]} }'
and make list of urls for download, script remove files which has line "md5 src_uri ;-)" (already downloaded files but not emerged yet)
now "emerge -pf world" don't print this magic lines and I can't divide its output on -already downloaded files but not merge yet -and files not downloaded and not merged
Please make Gentoo offline user's life more easier.
Maybe something like the following very much untested one-liner can help?
dist=`portageq distdir`;for url in `emerge --nospinner -pf world 2>&1|grep -E '^http|ftp'|cut -f1 -d' '|sort -u`; do f=`basename $url`; if [ ! -s $dist/$f ]; then echo $url;fi;done
I hope this will bring your Gentoo Happiness back. Cheers, -- / Xavier Neys \_ Gentoo Documentation Project / French & Internationalisation Lead \ http://www.gentoo.org/doc/en /\
signature.asc
Description: OpenPGP digital signature
