Return early from fetch() if no uris are given.
authorZac Medico <zmedico@gentoo.org>
Mon, 27 Oct 2008 22:35:43 +0000 (22:35 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 27 Oct 2008 22:35:43 +0000 (22:35 -0000)
svn path=/main/trunk/; revision=11728

pym/portage/__init__.py

index 18ea6e8382c4511b8c3a343e9d4c86848334461c..b55cebd9466ce38c7554fb2ab35daab2b8155d91 100644 (file)
@@ -3339,6 +3339,9 @@ _size_suffix_map = {
 def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",use_locks=1, try_mirrors=1):
        "fetch files.  Will use digest file if available."
 
+       if not myuris:
+               return 1
+
        features = mysettings.features
        restrict = mysettings.get("PORTAGE_RESTRICT","").split()