FileNotFoundException should be used with the filename
authorMarius Mauch <genone@gentoo.org>
Sat, 25 Mar 2006 00:18:19 +0000 (00:18 -0000)
committerMarius Mauch <genone@gentoo.org>
Sat, 25 Mar 2006 00:18:19 +0000 (00:18 -0000)
svn path=/main/trunk/; revision=2995

pym/portage_checksum.py

index 9ea1cc636b1435ea72da9c2db4742aa3ce90afe2..171ecba2fb9ae8cdc0c058f5a1436225023a0ff1 100644 (file)
@@ -142,7 +142,7 @@ def perform_checksum(filename, hashname="MD5", calc_prelink=0):
                myhash, mysize = hashfunc_map[hashname](myfilename)
        except (OSError, IOError), e:
                if e.errno == errno.ENOENT:
-                       raise portage_exception.FileNotFound(e)
+                       raise portage_exception.FileNotFound(myfilename)
                else:
                        raise e
        if calc_prelink and prelink_capable: