From 02126ce1d4f4f4f10b7531d77bccdfc6e362ee55 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 13 Oct 2008 00:39:21 +0000 Subject: Make fetch() fetch as many files as possible, even if some fail, when in fetchonly mode. svn path=/main/trunk/; revision=11688 --- pym/portage/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pym') 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): -- cgit v1.2.3-1-g7c22