summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-07-27 08:12:52 +0000
committerZac Medico <zmedico@gentoo.org>2006-07-27 08:12:52 +0000
commita572d4d348be6b27036a494b31a57e4f80a2f595 (patch)
treeeb9eb5d17331cdf9752794599e49e9b5fb51cf0e /pym
parentcd8a3bfc31eaa3a8698cc1115493f0f51a70d64d (diff)
downloadportage-a572d4d348be6b27036a494b31a57e4f80a2f595.tar.gz
portage-a572d4d348be6b27036a494b31a57e4f80a2f595.tar.bz2
portage-a572d4d348be6b27036a494b31a57e4f80a2f595.zip
Ensure that that fetch restriction message is only show once in --pretend mode.
svn path=/main/trunk/; revision=4029
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 663741e90..ad2c72c1c 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -2143,6 +2143,8 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
print "!!! manually. See the comments in" + \
" the ebuild for more information.\n"
spawn(EBUILD_SH_BINARY + " nofetch", mysettings)
+ if listonly:
+ return 0
if (fetched!=2) and not listonly:
if restrict_fetch:
pass