Fix dbapi._iter_match_use() to escape IUSE values when necessary.
authorZac Medico <zmedico@gentoo.org>
Tue, 27 May 2008 04:50:37 +0000 (04:50 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 27 May 2008 04:50:37 +0000 (04:50 -0000)
svn path=/main/trunk/; revision=10445

pym/portage/dbapi/__init__.py

index 95219322f9350af6e83c66a65b9701733cbbaf03..064309cf8ccbfcedfcc8a92c131873a10cd3f880 100644 (file)
@@ -149,7 +149,7 @@ class dbapi(object):
                        iuse, use = self.aux_get(cpv, ["IUSE", "USE"])
                        use = use.split()
                        iuse = self._iuse_implicit.union(
-                               x.lstrip("+-") for x in iuse.split())
+                               re.escape(x.lstrip("+-")) for x in iuse.split())
                        iuse_re = re.compile("^(%s)$" % "|".join(iuse))
                        missing_iuse = False
                        for x in atom.use.required: