From 18224e881bec3e4718e15344fa6a861383d5c247 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 30 Jul 2008 06:12:19 +0000 Subject: [PATCH] Remove redundant use dep validation code that's handled by regular expression now. svn path=/main/trunk/; revision=11281 --- pym/portage/dep.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pym/portage/dep.py b/pym/portage/dep.py index 8630ab77e..adbde5f6d 100644 --- a/pym/portage/dep.py +++ b/pym/portage/dep.py @@ -367,20 +367,16 @@ class _use_dep(object): else: conditional.enabled.append( self._validate_flag(x, x[:-1])) + elif "=" == last_char: - if "-" == first_char: - raise InvalidAtom("Invalid use dep: '%s'" % (x,)) - if "!" == x[-2:-1]: - raise InvalidAtom("Invalid use dep: '%s'" % (x,)) if "!" == first_char: conditional.not_equal.append( self._validate_flag(x, x[1:-1])) else: conditional.equal.append( self._validate_flag(x, x[:-1])) + else: - if "!" == first_char: - raise InvalidAtom("Invalid use dep: '%s'" % (x,)) if "-" == first_char: disabled_flags.append(self._validate_flag(x, x[1:])) else: -- 2.26.2