Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7655 - portage equivalent of FreeBSD's make fetch-list
Summary: portage equivalent of FreeBSD's make fetch-list
Status: RESOLVED DUPLICATE of bug 5926
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-08 11:32 UTC by Jeremy Gebben
Modified: 2011-10-30 22:38 UTC (History)
2 users (show)

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


Attachments
patch against emerge from 2.0.36 (emerge.diff,2.96 KB, text/plain)
2002-09-08 11:33 UTC, Jeremy Gebben
Details
patch for portage.py 2.0.36 (portage.py.diff,7.82 KB, patch)
2002-09-08 11:33 UTC, Jeremy Gebben
Details | Diff
sample output (sample.fetchlist,6.08 KB, text/plain)
2002-09-08 11:34 UTC, Jeremy Gebben
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Gebben 2002-09-08 11:32:17 UTC
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.
Comment 1 Jeremy Gebben 2002-09-08 11:33:19 UTC
Created attachment 3746 [details]
patch against emerge from 2.0.36
Comment 2 Jeremy Gebben 2002-09-08 11:33:56 UTC
Created attachment 3747 [details, diff]
patch for portage.py 2.0.36
Comment 3 Jeremy Gebben 2002-09-08 11:34:41 UTC
Created attachment 3748 [details]
sample output
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2002-10-22 16:19:42 UTC
emerge -fp | grep '/' | xargs -n1 wget
Comment 5 Jeremy Gebben 2002-10-28 16:19:42 UTC

*** This bug has been marked as a duplicate of 5926 ***