From: Zac Medico Date: Wed, 6 May 2009 22:12:44 +0000 (-0000) Subject: Fix digestcheck() to handle missing distfiles digests correctly. Thanks to X-Git-Tag: v2.2_rc34~211 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=23ddb4a0df8b616bee680ad61af7966b284020bb;p=portage.git Fix digestcheck() to handle missing distfiles digests correctly. Thanks to Petteri Räty for reporting. svn path=/main/trunk/; revision=13618 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 93031b796..6854eea99 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -4822,7 +4822,10 @@ def digestcheck(myfiles, mysettings, strict=0, justmanifest=0): eout.eend(0) for f in myfiles: eout.ebegin("checking %s ;-)" % f) - mf.checkFileHashes(mf.findFile(f), f) + ftype = mf.findFile(f) + if ftype is None: + raise KeyError(f) + mf.checkFileHashes(ftype, f) eout.eend(0) except KeyError, e: eout.eend(1)