From 23ddb4a0df8b616bee680ad61af7966b284020bb Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 6 May 2009 22:12:44 +0000 Subject: =?UTF-8?q?Fix=20digestcheck()=20to=20handle=20missing=20distfiles?= =?UTF-8?q?=20digests=20correctly.=20Thanks=20to=20Petteri=20R=C3=A4ty=20=20for=20reporting.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/main/trunk/; revision=13618 --- pym/portage/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3-1-g7c22