summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-30 06:12:19 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-30 06:12:19 +0000
commit18224e881bec3e4718e15344fa6a861383d5c247 (patch)
treecee6fe5c4a3a67ea2366d9dd3f15ea2efcfe47c4
parentcf1cc5d30af986a844bd02e14acd7f58e8c83bd5 (diff)
downloadportage-18224e881bec3e4718e15344fa6a861383d5c247.tar.gz
portage-18224e881bec3e4718e15344fa6a861383d5c247.tar.bz2
portage-18224e881bec3e4718e15344fa6a861383d5c247.zip
Remove redundant use dep validation code that's handled by regular expression
now. svn path=/main/trunk/; revision=11281
-rw-r--r--pym/portage/dep.py8
1 files 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: