summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-04-03 19:58:22 +0000
committerZac Medico <zmedico@gentoo.org>2008-04-03 19:58:22 +0000
commit224b98720bf0cff264dc06d026d83c7fd4ac5d19 (patch)
tree689ef709271cebaff1b8ad0a1c5f09f4c47a84bc
parente2983690e7a22d69cb1507b55050438a6ec3d924 (diff)
downloadportage-224b98720bf0cff264dc06d026d83c7fd4ac5d19.tar.gz
portage-224b98720bf0cff264dc06d026d83c7fd4ac5d19.tar.bz2
portage-224b98720bf0cff264dc06d026d83c7fd4ac5d19.zip
If PORTAGE_FETCH_RESUME_MIN_SIZE is undefined or empty, silently use
the default. svn path=/main/trunk/; revision=9689
-rw-r--r--pym/portage/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 4233c2eea..3b64c48c8 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -3069,6 +3069,9 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
fetch_resume_size = mysettings.get("PORTAGE_FETCH_RESUME_MIN_SIZE")
if fetch_resume_size is not None:
fetch_resume_size = "".join(fetch_resume_size.split())
+ if not fetch_resume_size:
+ # If it's undefined or empty, silently use the default.
+ fetch_resume_size = fetch_resume_size_default
match = _fetch_resume_size_re.match(fetch_resume_size)
if match is None or \
(match.group(2).upper() not in _size_suffix_map):