Sort hashes for predictable output from Manifest._createManifestEntries().
authorZac Medico <zmedico@gentoo.org>
Fri, 23 Nov 2007 02:37:11 +0000 (02:37 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 23 Nov 2007 02:37:11 +0000 (02:37 -0000)
svn path=/main/trunk/; revision=8615

pym/portage/manifest.py

index 82ca37efbe75d344e6bdee8c235cc996511b190f..7f7be0fdddb6d5d601fd7d0632581f2ff348ad4a 100644 (file)
@@ -316,6 +316,7 @@ class Manifest(object):
                                myentry = Manifest2Entry(
                                        type=t, name=f, hashes=self.fhashdict[t][f].copy())
                                myhashkeys = myentry.hashes.keys()
+                               myhashkeys.sort()
                                for h in myhashkeys:
                                        if h not in ["size"] + portage.const.MANIFEST2_HASH_FUNCTIONS:
                                                del myentry.hashes[h]