diff options
-rw-r--r-- | pym/portage/dep/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
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) |