Add square brackets, [ and ] to the _invalid_atom_chars_regexp that's
authorZac Medico <zmedico@gentoo.org>
Sun, 25 May 2008 01:54:42 +0000 (01:54 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 25 May 2008 01:54:42 +0000 (01:54 -0000)
used by isvalidatom() since we don't wan't atoms with USE deps slipping
through here.

svn path=/main/branches/2.1.2/; revision=10397

pym/portage_dep.py

index 3def9412e2745c9bc554cb458ad01ff886df83a2..4fe95d9b309b0ae3169876e60b4a9432ade5b32f 100644 (file)
@@ -369,7 +369,7 @@ def remove_slot(mydep):
                mydep = mydep[:colon]
        return mydep
 
-_invalid_atom_chars_regexp = re.compile("[()|?@]")
+_invalid_atom_chars_regexp = re.compile("[()|?@\[\]]")
 
 def isvalidatom(atom, allow_blockers=False):
        """