From: Zac Medico Date: Tue, 27 May 2008 04:50:37 +0000 (-0000) Subject: Fix dbapi._iter_match_use() to escape IUSE values when necessary. X-Git-Tag: v2.2_pre8~95 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ee97a2940c2446deccfc040ea4df3cbeaf267b31;p=portage.git Fix dbapi._iter_match_use() to escape IUSE values when necessary. svn path=/main/trunk/; revision=10445 --- 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: