Add missing str.upper() call for PORTAGE_FETCH_RESUME_MIN_SIZE.
authorZac Medico <zmedico@gentoo.org>
Thu, 3 Apr 2008 20:03:40 +0000 (20:03 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 3 Apr 2008 20:03:40 +0000 (20:03 -0000)
svn path=/main/trunk/; revision=9691

pym/portage/__init__.py

index 3b64c48c8dd26a24a0cfa37feeca83066592bc95..0d60fdc2fef7771c15a3cdf31aa309838a9834b7 100644 (file)
@@ -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