Ensure that that fetch restriction message is only show once in --pretend mode.
authorZac Medico <zmedico@gentoo.org>
Thu, 27 Jul 2006 08:12:52 +0000 (08:12 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 27 Jul 2006 08:12:52 +0000 (08:12 -0000)
svn path=/main/trunk/; revision=4029

pym/portage.py

index 663741e90fa5ac196216f8f3b4706fdc8b41621c..ad2c72c1c99b507bfe9f516b32884f89422725bf 100644 (file)
@@ -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