1 |
Author: zmedico |
2 |
Date: 2008-10-13 00:39:21 +0000 (Mon, 13 Oct 2008) |
3 |
New Revision: 11688 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/portage/__init__.py |
7 |
Log: |
8 |
Make fetch() fetch as many files as possible, even if some fail, when in |
9 |
fetchonly mode. |
10 |
|
11 |
|
12 |
Modified: main/trunk/pym/portage/__init__.py |
13 |
=================================================================== |
14 |
--- main/trunk/pym/portage/__init__.py 2008-10-13 00:21:01 UTC (rev 11687) |
15 |
+++ main/trunk/pym/portage/__init__.py 2008-10-13 00:39:21 UTC (rev 11688) |
16 |
@@ -3623,6 +3623,7 @@ |
17 |
del distlocks_subdir |
18 |
|
19 |
distdir_writable = can_fetch and not fetch_to_ro |
20 |
+ failed_files = set() |
21 |
|
22 |
for myfile in filedict: |
23 |
""" |
24 |
@@ -4105,7 +4106,12 @@ |
25 |
else: |
26 |
writemsg("!!! Couldn't download '%s'. Aborting.\n" % myfile, |
27 |
noiselevel=-1) |
28 |
+ if fetchonly: |
29 |
+ failed_files.add(myfile) |
30 |
+ continue |
31 |
return 0 |
32 |
+ if failed_files: |
33 |
+ return 0 |
34 |
return 1 |
35 |
|
36 |
def digestgen(myarchives, mysettings, overwrite=1, manifestonly=0, myportdb=None): |