summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-05-08 06:24:29 +0000
committerZac Medico <zmedico@gentoo.org>2006-05-08 06:24:29 +0000
commit51504cbd18433ee73cf81006be3817738757076e (patch)
treef952eb85a0cc23247c5fcc6702701f295ebc837d
parenta2db052c318100cd42aae5c9abaf3ca2676c6a32 (diff)
downloadportage-51504cbd18433ee73cf81006be3817738757076e.tar.gz
portage-51504cbd18433ee73cf81006be3817738757076e.tar.bz2
portage-51504cbd18433ee73cf81006be3817738757076e.zip
Catch FileNotFound exception and print a message when a file listed in the Manifest could not be found.
svn path=/main/trunk/; revision=3331
-rw-r--r--pym/portage.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 177c78eda..1b70f5e59 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -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])