Add PROPERTIES to the list of USE evaluated keys for the Packages index.
authorZac Medico <zmedico@gentoo.org>
Fri, 26 Sep 2008 23:00:01 +0000 (23:00 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 26 Sep 2008 23:00:01 +0000 (23:00 -0000)
svn path=/main/trunk/; revision=11562

pym/portage/dbapi/bintree.py

index 94fda67e5a13f70999506471706147507ea28307..d156ef76782cc60f92a83f335395113dd585e824 100644 (file)
@@ -157,6 +157,9 @@ class binarytree(object):
                                "IUSE", "KEYWORDS", "LICENSE", "PDEPEND", "PROPERTIES",
                                "PROVIDE", "RDEPEND", "repository", "SLOT", "USE"]
                        self._pkgindex_aux_keys = list(self._pkgindex_aux_keys)
+                       self._pkgindex_use_evaluated_keys = \
+                               ("LICENSE", "RDEPEND", "DEPEND",
+                               "PDEPEND", "PROPERTIES", "PROVIDE")
                        self._pkgindex_header_keys = set(["ACCEPT_KEYWORDS", "CBUILD",
                                "CHOST", "CONFIG_PROTECT", "CONFIG_PROTECT_MASK", "FEATURES",
                                "GENTOO_MIRRORS", "INSTALL_MASK", "SYNC", "USE"])
@@ -904,7 +907,7 @@ class binarytree(object):
                metadata["USE"] = " ".join(use)
                from portage.dep import paren_reduce, use_reduce, \
                        paren_normalize, paren_enclose
-               for k in "LICENSE", "RDEPEND", "DEPEND", "PDEPEND", "PROVIDE":
+               for k in self._pkgindex_use_evaluated_keys:
                        try:
                                deps = paren_reduce(metadata[k])
                                deps = use_reduce(deps, uselist=raw_use)