From ee97a2940c2446deccfc040ea4df3cbeaf267b31 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 27 May 2008 04:50:37 +0000 Subject: [PATCH] Fix dbapi._iter_match_use() to escape IUSE values when necessary. svn path=/main/trunk/; revision=10445 --- pym/portage/dbapi/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/dbapi/__init__.py b/pym/portage/dbapi/__init__.py index 95219322f..064309cf8 100644 --- a/pym/portage/dbapi/__init__.py +++ b/pym/portage/dbapi/__init__.py @@ -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: -- 2.26.2