Summary: | Support batched downloads | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Sven Vermeulen (RETIRED) <swift> |
Component: | Core | Assignee: | Nicholas Jones (RETIRED) <carpaski> |
Status: | RESOLVED WONTFIX | ||
Severity: | enhancement | ||
Priority: | High | ||
Version: | 2.0 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Sven Vermeulen (RETIRED)
![]() `emerge world -fup` gives you a list of all files to be d/l-ed ... or you could do `emerge world -uf` to only fetch the packages ... I didn't say something works or not... emerge -fu world will download all packages one by one, not batched. It does the equivalent of - in case wget is used: wget uri1 wget uri2 wget uri3 ... wget uriN And what I was talking about is a batched download: cat > filelist << EOF uri1 uri2 uri3 ... uriN EOF wget -i filelist Reopened due to misidentification of problem as i said in comment #1 then: `emerge world -fup` gives you a list of all files to be d/l-ed ... so you could conceivably do `emerge world -fup > filelist` Yes, however then you would still have to parse that output so that only 1 URI for each package is used, then download it batched, then for all packages that were not available try to do a batched download with a different URI etc... This isn't a one-liner anymore, therefor I thought it could be handy to import it into Portage. But if not, no sweat, I'll create a script that does the same... just thought some other ppl could find it handy. well, depending on the client, cant you tell it to not d/l a file if it already exists ? and/or tell it to attempt a resume ? Yes it does, kewl, then this could actually be an improvement for Gentoo's portage: if Portage would use batched downloads per default when "emerge -f" is used, then it would not have the overhead of (re)starting 'fetchcommand' and (re)initializing the connection for each package. seems like this is an enhancement which doesn't have much fallback from the user community. Ppl who want such a batched download can write a script based on the "emerge -fp <package>" output. |