summaryrefslogtreecommitdiffstats
path: root/pym/portage_manifest.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-03-27 10:16:16 +0000
committerZac Medico <zmedico@gentoo.org>2006-03-27 10:16:16 +0000
commit92ca9a23fdac592abebfde4d872679f041080dce (patch)
tree43701770d8681a7b5111cc33f1fc60b871fc52d0 /pym/portage_manifest.py
parent2da98ee3be94d5a3a56dd210b212213d7ea87c1d (diff)
downloadportage-92ca9a23fdac592abebfde4d872679f041080dce.tar.gz
portage-92ca9a23fdac592abebfde4d872679f041080dce.tar.bz2
portage-92ca9a23fdac592abebfde4d872679f041080dce.zip
Sort the hashes for manifest2 lines to that output is reproducible.
svn path=/main/trunk/; revision=3026
Diffstat (limited to 'pym/portage_manifest.py')
-rw-r--r--pym/portage_manifest.py6
1 files 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