Here's a proof-of-concept patch (vs. portage-2.0.36) that adds a --fetchlist option to emerge. This option causes emerge to output a shell script that fetches all of the tarballs that would be needed for whatever operation it is doing. The idea is that if gentoo box has a slow internet connection, no internet connecttion or whatever, you generate a fetchlist, take it to someplace where you have fast internet, download the packages and then copy them back later (with a burned cd, zip drive, etc.). The patch isn't quite what I'd want in the end, since it always appends the shell commands to a file called "fetchlist" in the cwd. When doing this "for real" I'd do one of the following: 1. Add a --quiet option to emerge that disabled all of the spinner stuff and the ">>> *" output, and then output the shell commands on stdout. 2. Come up with a naming convention for fetchlist files (world.fetchlist, system.fetchlist, mozilla-1.1.fetchlist, ...) 3. Make the option be --fetchlist=filename. If anybody is interested in this, I'll clean it up based on feedback and make something actually usable. Or just take it an run, whatever.
Created attachment 3746 [details] patch against emerge from 2.0.36
Created attachment 3747 [details, diff] patch for portage.py 2.0.36
Created attachment 3748 [details] sample output
emerge -fp | grep '/' | xargs -n1 wget
*** This bug has been marked as a duplicate of 5926 ***