From: Zac Medico Date: Tue, 2 Mar 2010 20:06:58 +0000 (-0000) Subject: Make verify_all() do checksums in sorted order by hash name. (trunk r15318) X-Git-Tag: v2.1.8~169 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e784d66f97b7d6d9ec8afbe024d87bed2aa30ac6;p=portage.git Make verify_all() do checksums in sorted order by hash name. (trunk r15318) svn path=/main/branches/2.1.7/; revision=15553 --- diff --git a/pym/portage/checksum.py b/pym/portage/checksum.py index 6b849d5d7..badde3daf 100644 --- a/pym/portage/checksum.py +++ b/pym/portage/checksum.py @@ -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: