From 4f00ff24f016514576892586ddfeb15e906f295e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 6 May 2006 11:52:51 +0000 Subject: [PATCH] Catch a KeyError and report a missing digest for bug #132410. svn path=/main/trunk/; revision=3324 --- pym/portage.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pym/portage.py b/pym/portage.py index a4e042e58..fd2f13640 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -2331,6 +2331,9 @@ def digestcheck(myfiles, mysettings, strict=0, justmanifest=0): writemsg_stdout(">>> checking %s" % f) mf.checkFileHashes(mf.findFile(f), f) writemsg_stdout(okaymsg) + except KeyError, e: + writemsg("\n!!! Missing digest for %s\n" % str(e)) + return 0 except portage_exception.DigestException, e: writemsg("\n!!! Digest verification failed:\n") writemsg("!!! %s\n" % e.value[0]) -- 2.26.2