Catch a KeyError and report a missing digest for bug #132410.
authorZac Medico <zmedico@gentoo.org>
Sat, 6 May 2006 11:52:51 +0000 (11:52 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 6 May 2006 11:52:51 +0000 (11:52 -0000)
svn path=/main/trunk/; revision=3324

pym/portage.py

index a4e042e581a7a9f2b907835e85042cc90976bbe1..fd2f136405b18cb8b989185b514977d2472e0c3b 100644 (file)
@@ -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])