From: Zac Medico Date: Mon, 30 Aug 2010 13:06:07 +0000 (-0700) Subject: Make match_from_list() strip "!!" when appropriate for strong blocks. X-Git-Tag: v2.2_rc73~40 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dabc8d96bfe1cf25b29ad82f9b9dda47e29187e2;p=portage.git Make match_from_list() strip "!!" when appropriate for strong blocks. --- diff --git a/pym/portage/dep/__init__.py b/pym/portage/dep/__init__.py index 382a4f611..8e2b2ef49 100644 --- a/pym/portage/dep/__init__.py +++ b/pym/portage/dep/__init__.py @@ -1646,7 +1646,10 @@ def match_from_list(mydep, candidate_list): from portage.util import writemsg if "!" == mydep[:1]: - mydep = mydep[1:] + if "!" == mydep[1:2]: + mydep = mydep[2:] + else: + mydep = mydep[1:] if not isinstance(mydep, Atom): mydep = Atom(mydep, allow_wildcard=True)