From c82d63f3871d37faf7528fc1af8a36a33e2011ab Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 27 Oct 2008 22:35:43 +0000 Subject: [PATCH] Return early from fetch() if no uris are given. svn path=/main/trunk/; revision=11728 --- pym/portage/__init__.py | 3 +++ 1 file changed, 3 insertions(+) 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() -- 2.26.2