diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-10-13 00:39:21 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-10-13 00:39:21 +0000 |
commit | 02126ce1d4f4f4f10b7531d77bccdfc6e362ee55 (patch) | |
tree | 61c3303f8f4201fe747f670a5b83fb39db934564 | |
parent | b673d66a1c70412bbc0c53727e323d06ee55d121 (diff) | |
download | portage-02126ce1d4f4f4f10b7531d77bccdfc6e362ee55.tar.gz portage-02126ce1d4f4f4f10b7531d77bccdfc6e362ee55.tar.bz2 portage-02126ce1d4f4f4f10b7531d77bccdfc6e362ee55.zip |
Make fetch() fetch as many files as possible, even if some fail, when in
fetchonly mode.
svn path=/main/trunk/; revision=11688
-rw-r--r-- | pym/portage/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 2471ab351..b799996da 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -3623,6 +3623,7 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks", del distlocks_subdir distdir_writable = can_fetch and not fetch_to_ro + failed_files = set() for myfile in filedict: """ @@ -4105,7 +4106,12 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks", else: writemsg("!!! Couldn't download '%s'. Aborting.\n" % myfile, noiselevel=-1) + if fetchonly: + failed_files.add(myfile) + continue return 0 + if failed_files: + return 0 return 1 def digestgen(myarchives, mysettings, overwrite=1, manifestonly=0, myportdb=None): |