diff options
-rw-r--r-- | pym/portage_checksum.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage_checksum.py b/pym/portage_checksum.py index fd659eea2..41b336066 100644 --- a/pym/portage_checksum.py +++ b/pym/portage_checksum.py @@ -146,7 +146,7 @@ def perform_checksum(filename, hashname="MD5", calc_prelink=0): if e.errno == errno.ENOENT: raise portage_exception.FileNotFound(myfilename) else: - raise e + raise if calc_prelink and prelink_capable: try: os.unlink(prelink_tmpfile) @@ -154,7 +154,7 @@ def perform_checksum(filename, hashname="MD5", calc_prelink=0): if oe.errno == errno.ENOENT: pass else: - raise oe + raise portage_locks.unlockfile(mylock) return (myhash,mysize) |