From: Zac Medico Date: Fri, 20 Jul 2007 05:43:07 +0000 (-0000) Subject: If the fetcher reported success and the file is too small, don't attempt to resume... X-Git-Tag: v2.1.3~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cfc11a56a74ae60cc5ef0f81958ded0bc8a48f25;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. (trunk r7321) svn path=/main/branches/2.1.2/; revision=7322 --- diff --git a/pym/portage.py b/pym/portage.py index 16607087e..cde08aa7e 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -2729,7 +2729,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(): @@ -2778,7 +2778,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)