From: Zac Medico Date: Mon, 27 Oct 2008 22:35:43 +0000 (-0000) Subject: Return early from fetch() if no uris are given. X-Git-Tag: v2.2_rc13~54 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c82d63f3871d37faf7528fc1af8a36a33e2011ab;p=portage.git Return early from fetch() if no uris are given. svn path=/main/trunk/; revision=11728 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 18ea6e838..b55cebd94 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -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()