summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Stubbs <jstubbs@gentoo.org>2005-12-30 07:19:49 +0000
committerJason Stubbs <jstubbs@gentoo.org>2005-12-30 07:19:49 +0000
commitc86a5f1dc7fdd9c1c177e07d66c449f628756f22 (patch)
tree6e65f89c1fc465cc2af5df45575eb8216c5a7cbf /pym/portage.py
parentSplit email addresses on the final "@" so as to allow "@" within the username (diff)
downloadportage-multirepo-c86a5f1dc7fdd9c1c177e07d66c449f628756f22.tar.gz
portage-multirepo-c86a5f1dc7fdd9c1c177e07d66c449f628756f22.tar.bz2
portage-multirepo-c86a5f1dc7fdd9c1c177e07d66c449f628756f22.zip
Check and raise an exception when a hash function is missing during digesting.
svn path=/main/trunk/; revision=2498
Diffstat (limited to 'pym/portage.py')
-rw-r--r--pym/portage.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 1254c7d6..da1b8e74 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -2148,7 +2148,11 @@ def digestgen(myarchives,mysettings,overwrite=1,manifestonly=0):
myolddigest = digestParseFile(digestfn)
myarchives.sort()
- mydigests=digestCreate(myarchives, basedir, oldDigest=myolddigest)
+ try:
+ mydigests=digestCreate(myarchives, basedir, oldDigest=myolddigest)
+ except portage_exception.DigestException, s:
+ print "!!!",s
+ return 0
if mydigests==None: # There was a problem, exit with an errorcode.
return 0