summaryrefslogtreecommitdiffstats
path: root/pym/portage_dep.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-12-10 19:55:58 +0000
committerZac Medico <zmedico@gentoo.org>2006-12-10 19:55:58 +0000
commit8a5bafa0dcb3d00b2662ad82f66f634af894a30a (patch)
tree95e6978bc4c9c7c3cd8b5b864dc02f33c7ca9a7d /pym/portage_dep.py
parent134b22bf236bd6c531a59f6444d5707f166027d8 (diff)
downloadportage-8a5bafa0dcb3d00b2662ad82f66f634af894a30a.tar.gz
portage-8a5bafa0dcb3d00b2662ad82f66f634af894a30a.tar.bz2
portage-8a5bafa0dcb3d00b2662ad82f66f634af894a30a.zip
For bug #157734, fix repoman isvalidatom() checks. Thanks to Brian Harring for the patch.
svn path=/main/trunk/; revision=5263
Diffstat (limited to 'pym/portage_dep.py')
-rw-r--r--pym/portage_dep.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage_dep.py b/pym/portage_dep.py
index a3186e8f1..f284ae73a 100644
--- a/pym/portage_dep.py
+++ b/pym/portage_dep.py
@@ -333,6 +333,8 @@ def isvalidatom(atom):
global _invalid_atom_chars_regexp
if _invalid_atom_chars_regexp.search(atom):
return 0
+ if atom.startswith("!"):
+ atom = atom[1:]
mycpv_cps = catpkgsplit(dep_getcpv(atom))
operator = get_operator(atom)
if operator: