(trunk r15289)
svn path=/main/branches/2.1.7/; revision=15528
return myhashdict
def _createManifestEntries(self):
+ valid_hashes = set(portage.const.MANIFEST2_HASH_FUNCTIONS)
+ valid_hashes.add('size')
mytypes = list(self.fhashdict)
mytypes.sort()
for t in mytypes:
for f in myfiles:
myentry = Manifest2Entry(
type=t, name=f, hashes=self.fhashdict[t][f].copy())
- myhashkeys = list(myentry.hashes)
- myhashkeys.sort()
- for h in myhashkeys:
- if h not in ["size"] + portage.const.MANIFEST2_HASH_FUNCTIONS:
+ for h in list(myentry.hashes):
+ if h not in valid_hashes:
del myentry.hashes[h]
yield myentry