Make sure the pkg_nofetch phase is only called once when in fetchonly mode.
authorZac Medico <zmedico@gentoo.org>
Mon, 13 Oct 2008 20:52:07 +0000 (20:52 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 13 Oct 2008 20:52:07 +0000 (20:52 -0000)
svn path=/main/trunk/; revision=11689

pym/portage/__init__.py

index b799996da7e14bc20eb50f0d824ad18fd7d4714b..e037531962d074ebec9f661c67ef0c199822d0de 100644 (file)
@@ -4106,7 +4106,7 @@ 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:
+                       if fetchonly and not restrict_fetch:
                                failed_files.add(myfile)
                                continue
                        return 0