Sort hashes for predictable output from Manifest._createManifestEntries().
authorZac Medico <zmedico@gentoo.org>
Fri, 23 Nov 2007 02:37:50 +0000 (02:37 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 23 Nov 2007 02:37:50 +0000 (02:37 -0000)
(trunk r8615)

svn path=/main/branches/2.1.2/; revision=8616

pym/portage_manifest.py

index 502cc06a10f33fc49f36c6baed748be357a61dec..0e103d0943b587fed402de85ac0a23a86e4d7334 100644 (file)
@@ -318,6 +318,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]