Make verify_all() do checksums in sorted order by hash name. (trunk r15318)
authorZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 20:06:58 +0000 (20:06 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 20:06:58 +0000 (20:06 -0000)
svn path=/main/branches/2.1.7/; revision=15553

pym/portage/checksum.py

index 6b849d5d7715fc8648fa8d0c57b5702021e29acc..badde3daf716d2fcff7519dcc3e374200e1c00d5 100644 (file)
@@ -186,7 +186,7 @@ def verify_all(filename, mydict, calc_prelink=0, strict=0):
                got = " ".join(got)
                return False, (_("Insufficient data for checksum verification"), got, expected)
 
-       for x in mydict:
+       for x in sorted(mydict):
                if   x == "size":
                        continue
                elif x in hashfunc_map: