Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 411897 | Differences between
and this patch

Collapse All | Expand All

(-)a/pym/portage/checksum.py (-2 / +3 lines)
Lines 301-308 def perform_checksum(filename, hashname="MD5", calc_prelink=0): Link Here
301
				prelink_capable = False
301
				prelink_capable = False
302
		try:
302
		try:
303
			if hashname not in hashfunc_map:
303
			if hashname not in hashfunc_map:
304
				raise portage.exception.DigestException(hashname + \
304
				raise portage.exception.DigestException(
305
					" hash function not available (needs dev-python/pycrypto)")
305
					"% hash function not available (needs dev-python/pycrypto)"
306
						% hashname )
306
			myhash, mysize = hashfunc_map[hashname](myfilename)
307
			myhash, mysize = hashfunc_map[hashname](myfilename)
307
		except (OSError, IOError) as e:
308
		except (OSError, IOError) as e:
308
			if e.errno in (errno.ENOENT, errno.ESTALE):
309
			if e.errno in (errno.ENOENT, errno.ESTALE):

Return to bug 411897