View | Details | Raw Unified
Collapse All | Expand All

(-) pym/portage_checksum.py.orig (+3 lines)
 Lines 102-107    Link Here 
			continue
			continue
		elif x in hashfunc_map.keys():
		elif x in hashfunc_map.keys():
			myhash = perform_checksum(filename, x, calc_prelink=calc_prelink)[0]
			myhash = perform_checksum(filename, x, calc_prelink=calc_prelink)[0]
			#XXX: temporary workaround for bug #131293:
			if x == "SHA256" and mydict["size"]%64 == 55:
				continue
			if mydict[x] != myhash:
			if mydict[x] != myhash:
				if strict:
				if strict:
					raise portage_exception.DigestException, "Failed to verify '$(file)s' on checksum type '%(type)s'" % {"file":filename, "type":x}
					raise portage_exception.DigestException, "Failed to verify '$(file)s' on checksum type '%(type)s'" % {"file":filename, "type":x}