For compatibility, return a tuple of 3 when an OSError is raised in portage_checksum...
authorZac Medico <zmedico@gentoo.org>
Sun, 9 Apr 2006 08:28:05 +0000 (08:28 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 9 Apr 2006 08:28:05 +0000 (08:28 -0000)
svn path=/main/trunk/; revision=3105

pym/portage_checksum.py

index 171ecba2fb9ae8cdc0c058f5a1436225023a0ff1..38a064aa2fe52a242314621484211cfc1367aaf6 100644 (file)
@@ -94,7 +94,7 @@ def verify_all(filename, mydict, calc_prelink=0, strict=0):
                if mydict["size"] != mysize:
                        return False,("Filesize does not match recorded size", mysize, mydict["size"])
        except OSError, e:
-               return False, str(e)
+               return False, (str(e), None, None)
        for x in mydict.keys():
                if   x == "size":
                        continue