Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14976 - Generating URI list for remote fetching - patch
Summary: Generating URI list for remote fetching - patch
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High enhancement
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-02 11:18 UTC by Ewan Mac Mahon
Modified: 2011-10-30 22:38 UTC (History)
0 users

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


Attachments
Tiny patch to portage.py, changes a " " to a "\n" (disconnected.patch,307 bytes, patch)
2003-02-02 11:19 UTC, Ewan Mac Mahon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ewan Mac Mahon 2003-02-02 11:18:37 UTC
It can be useful to have portage generate a list of URIs that will be downloaded 
for an operation since it allows machines with slow/metered/no internet 
connections to create a list that can be taken to a better connected machine 
for actually doing the download. 
 
This can already be done using: 
# emerge --pretend --fetchonly foo 
but the several potential URIs for each file on the same line. The attached tiny 
patch tp portage.py changes this to one URI per line, which makes the output 
suitable for feeding straight into wget, eg: 
# emerge --pretend --fetchonly foo > fetchlist 
# wget --no-clobber --input-file=fetchlist 
(--no-clobber stops wget grabbing the file multiple times, once from each of 
the mirrors) There is some non-URI cruft in the output, but wget just ignores it. 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Ewan Mac Mahon 2003-02-02 11:19:44 UTC
Created attachment 7847 [details, diff]
Tiny patch to portage.py, changes a " " to a "\n"
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2003-02-07 01:48:40 UTC
No. Use a quick sed if you feel this necessary.
Space seperated has other functions.