From 2fc2cc120cdef58cc6aad995a188b0538326c03b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 6 Oct 2008 20:58:29 +0000 Subject: In fetch(), never call the pkg_nofetch phase when in "listonly" mode. svn path=/main/trunk/; revision=11644 --- pym/portage/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 918040981..0e1f29b4a 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -4057,7 +4057,7 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks", if listonly: writemsg_stdout("\n", noiselevel=-1) - if fetched != 2: + elif fetched != 2: if restrict_fetch: print "\n!!!", mysettings["CATEGORY"] + "/" + \ mysettings["PF"], "has fetch restriction turned on." @@ -4075,8 +4075,6 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks", mysettings.pop("EBUILD_PHASE", None) else: mysettings["EBUILD_PHASE"] = ebuild_phase - elif listonly: - continue elif not filedict[myfile]: writemsg("Warning: No mirrors available for file" + \ " '%s'\n" % (myfile), noiselevel=-1) -- cgit v1.2.3-1-g7c22