Catch FileNotFound exception and print a message when a file listed in the Manifest...
authorZac Medico <zmedico@gentoo.org>
Mon, 8 May 2006 06:24:29 +0000 (06:24 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 8 May 2006 06:24:29 +0000 (06:24 -0000)
svn path=/main/trunk/; revision=3331

pym/portage.py

index 177c78edaff85752c2c95cd5e1ecbb205cf8a532..1b70f5e59a618b62c3931e6d896b2eb2cddaccd3 100644 (file)
@@ -2336,6 +2336,9 @@ def digestcheck(myfiles, mysettings, strict=0, justmanifest=0):
        except KeyError, e:
                writemsg("\n!!! Missing digest for %s\n" % str(e))
                return 0
+       except portage_exception.FileNotFound, e:
+               writemsg("\n!!! A file listed in the Manifest could not be found: %s\n" % str(e))
+               return 0
        except portage_exception.DigestException, e:
                writemsg("\n!!! Digest verification failed:\n")
                writemsg("!!! %s\n" % e.value[0])