From: Zac Medico Date: Fri, 17 Oct 2008 02:02:32 +0000 (-0000) Subject: In fetch(), make sure all references to digests for zero-byte distfile are X-Git-Tag: v2.2_rc13~83 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ec81bc762cc1888ffab85610b443bfd639ee8e65;p=portage.git In fetch(), make sure all references to digests for zero-byte distfile are always discarded. svn path=/main/trunk/; revision=11697 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index dfa445bce..f0df5b688 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -3641,6 +3641,7 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks", size = orig_digests.get("size") if size == 0: # Zero-byte distfiles are always invalid, so discard their digests. + del mydigests[myfile] orig_digests.clear() size = None pruned_digests = orig_digests