summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-05-06 11:52:51 +0000
committerZac Medico <zmedico@gentoo.org>2006-05-06 11:52:51 +0000
commit4f00ff24f016514576892586ddfeb15e906f295e (patch)
tree3241c0961dc6289a2c521dbbb1fc57e544039ead
parentf6af62c26a2f8c87e73eded75443db6b2d7bb689 (diff)
downloadportage-4f00ff24f016514576892586ddfeb15e906f295e.tar.gz
portage-4f00ff24f016514576892586ddfeb15e906f295e.tar.bz2
portage-4f00ff24f016514576892586ddfeb15e906f295e.zip
Catch a KeyError and report a missing digest for bug #132410.
svn path=/main/trunk/; revision=3324
-rw-r--r--pym/portage.py3
1 files changed, 3 insertions, 0 deletions
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])