From: Zac Medico Date: Fri, 20 Jul 2007 05:40:42 +0000 (-0000) Subject: If the fetcher reported success and the file is too small, don't attempt to resume... X-Git-Tag: v2.2_pre1~984 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=203ec4fdc3ef654ba93eb5a6db912a031cbd3314;p=portage.git If the fetcher reported success and the file is too small, don't attempt to resume. Upstream probably changed the distfile and we need to show a digest verification failure so the user gets a clue. svn path=/main/trunk/; revision=7321 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 9b7553cb3..7764dcbe1 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -2840,7 +2840,7 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks", "gid" : portage_gid, "groups" : userpriv_groups, "umask" : 002}) - + myret = -1 try: if mysettings.selinux_enabled(): @@ -2889,7 +2889,15 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks", else: # no exception? file exists. let digestcheck() report # an appropriately for size or checksum errors - if (mystat[stat.ST_SIZE]4) and not ((myfile[-5:]==".html") or (myfile[-4:]==".htm")): html404=re.compile(".*(not found|404).*",re.I|re.M)