From 92ca9a23fdac592abebfde4d872679f041080dce Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 27 Mar 2006 10:16:16 +0000 Subject: Sort the hashes for manifest2 lines to that output is reproducible. svn path=/main/trunk/; revision=3026 --- pym/portage_manifest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pym/portage_manifest.py b/pym/portage_manifest.py index 0704bccc7..eb6758d60 100644 --- a/pym/portage_manifest.py +++ b/pym/portage_manifest.py @@ -200,14 +200,14 @@ class Manifest(object): f2 = f myline = " ".join([t, f, str(self.fhashdict[t][f]["size"])]) myhashes = self.fhashdict[t][f] - for h in myhashes.keys(): + myhashkeys = myhashes.keys() + myhashkeys.sort() + for h in myhashkeys: if h not in portage_const.MANIFEST2_HASH_FUNCTIONS: continue myline += " "+h+" "+str(myhashes[h]) mylines.append(myline) if self.compat and t != "DIST": - myhashkeys = myhashes.keys() - myhashkeys.sort() for h in myhashkeys: if h not in portage_const.MANIFEST1_HASH_FUNCTIONS: continue -- cgit v1.2.3-1-g7c22