summaryrefslogtreecommitdiffstats
path: root/pym/portage.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-04-03 19:59:57 +0000
committerZac Medico <zmedico@gentoo.org>2008-04-03 19:59:57 +0000
commitc6c277ac6f66f0bc9e5dd4cc4bd3e965d316e62c (patch)
treeb1fc6c6fdb3ca9e0120eb93ec761b9d447a4ef71 /pym/portage.py
parent3a81e3b1e8bcfc71dc4506c8ca54d3d4f4692039 (diff)
downloadportage-c6c277ac6f66f0bc9e5dd4cc4bd3e965d316e62c.tar.gz
portage-c6c277ac6f66f0bc9e5dd4cc4bd3e965d316e62c.tar.bz2
portage-c6c277ac6f66f0bc9e5dd4cc4bd3e965d316e62c.zip
If PORTAGE_FETCH_RESUME_MIN_SIZE is undefined or empty, silently use
the default. (trunk r9689) svn path=/main/branches/2.1.2/; revision=9690
Diffstat (limited to 'pym/portage.py')
-rw-r--r--pym/portage.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py
index d1cf85cc7..5739f5760 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -3045,6 +3045,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):