Summary: | [PATCH] emerge pretend fetch: no option to print urls of the missing required files | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Darragh Bailey <daragh.bailey> |
Component: | Core - Interface (emerge) | Assignee: | Portage team <dev-portage> |
Status: | CONFIRMED --- | ||
Severity: | enhancement | CC: | dan, navid.zamani |
Priority: | High | Keywords: | Inclusion |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=358923 https://bugs.gentoo.org/show_bug.cgi?id=293830 https://bugs.gentoo.org/show_bug.cgi?id=293827 https://bugs.gentoo.org/show_bug.cgi?id=629762 https://bugs.gentoo.org/show_bug.cgi?id=629048 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 377365, 120474 | ||
Attachments: |
Adds --fetch-missing option to emerge and portage.py
adds patch to files and updates portage-2.0.51.22-r3.ebuild to apply it |
Description
Darragh Bailey
2005-10-14 14:25:30 UTC
Actually I made a mistake with the comment "The behaviour that occurs with emerge is that -fp and -Fp return the url list of all files for the package." Which is not quite true, -F will also get files in the package even if you don't have the required use options enabled. Given this extra detail that I've worked out, I've changed this to an enhancement request to include an extra option instead to limit the list to just missing files to be printed. Updated summary to reflect this Created attachment 70692 [details, diff]
Adds --fetch-missing option to emerge and portage.py
This patch provides support for a new option that allows the user to request
emerge to only disable the urls of the missing files when it is used in
conjunction with --pretend and ( --fetchonly or --fetch-all-uris )
This should be useful for those people that generate a list of files to be
downloaded in order to retreive them using systems with better internet
connections.
Created attachment 70728 [details, diff]
adds patch to files and updates portage-2.0.51.22-r3.ebuild to apply it
This patch can be applied to the portage area to add in patch 70692 and have
the 2.0.51.22-r3 ebuild automatically apply it. Other than that its pretty much
the same as the previous patch.
At least with this applied when I do an "emerge -pfuD --fetch-missing world
2>1& | awk '/^[fh].*/ { print $1 }'" I get a list of urls of just the files I'm
missing and need to retreive. Instead of all the files for each package that
have to be updated.
If you're still after this please merge the patches and check them against a current portage version. Since moving to DSL, this is no longer of importance to me. Can be closed WONTFIX unless the developers see a benefit. I think we could safely exclude files that are already fetched without adding a separate option. Please see bug #358923 for a suggestion of a more advanced solution. (Basically emerge would generate a script, using FETCHCOMMAND, that you could run on another host.) |