Replace hard coded "size" with MANIFEST1_HASH_FUNCTIONS.
authorZac Medico <zmedico@gentoo.org>
Sun, 23 Apr 2006 06:34:43 +0000 (06:34 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 23 Apr 2006 06:34:43 +0000 (06:34 -0000)
svn path=/main/trunk/; revision=3193

pym/portage_manifest.py

index 6d412a105f88396ebe661e92a7db91c32e985c72..1320ba235dfd4ca28df675b62537f3606df507cc 100644 (file)
@@ -321,7 +321,7 @@ class Manifest(object):
                                        myhashkeys = myhashes.keys()
                                        myhashkeys.sort()
                                        for h in myhashkeys:
-                                               if h != "size":
+                                               if h in portage_const.MANIFEST1_HASH_FUNCTIONS:
                                                        yield Manifest1Entry(type="AUX", name=digest_path,
                                                                hashes={"size":myhashes["size"], h:myhashes[h]})
                                except FileNotFound: