summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-04-03 20:03:40 +0000
committerZac Medico <zmedico@gentoo.org>2008-04-03 20:03:40 +0000
commit1129a28eec2fc6215628ffd51d9b8c9b046b6f50 (patch)
tree62d71acdc81449038dedba90a3b882b466845b83
parent224b98720bf0cff264dc06d026d83c7fd4ac5d19 (diff)
downloadportage-1129a28eec2fc6215628ffd51d9b8c9b046b6f50.tar.gz
portage-1129a28eec2fc6215628ffd51d9b8c9b046b6f50.tar.bz2
portage-1129a28eec2fc6215628ffd51d9b8c9b046b6f50.zip
Add missing str.upper() call for PORTAGE_FETCH_RESUME_MIN_SIZE.
svn path=/main/trunk/; revision=9691
-rw-r--r--pym/portage/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 3b64c48c8..0d60fdc2f 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -3086,7 +3086,7 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
fetch_resume_size = fetch_resume_size_default
match = _fetch_resume_size_re.match(fetch_resume_size)
fetch_resume_size = int(match.group(1)) * \
- 2 ** _size_suffix_map[match.group(2)]
+ 2 ** _size_suffix_map[match.group(2).upper()]
# Behave like the package has RESTRICT="primaryuri" after a
# couple of checksum failures, to increase the probablility