svn path=/main/trunk/; revision=2498
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
import os
import shutil
import stat
+import portage_exception
import portage_exec
import portage_util
import portage_locks
def perform_multiple_checksums(filename, hashes=["MD5"], calc_prelink=0):
rVal = {}
for x in hashes:
+ if x not in hashfunc_map:
+ raise portage_exception.DigestException, x+" hash function not available"
rVal[x] = perform_checksum(filename, hashfunc_map[x], calc_prelink)[0]
return rVal