From: Zac Medico Date: Sun, 25 May 2008 01:54:42 +0000 (-0000) Subject: Add square brackets, [ and ] to the _invalid_atom_chars_regexp that's X-Git-Tag: v2.1.5.3~63 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2cfeeb2014b3648cc63f1f959afc70807ba15450;p=portage.git Add square brackets, [ and ] to the _invalid_atom_chars_regexp that's 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 --- diff --git a/pym/portage_dep.py b/pym/portage_dep.py index 3def9412e..4fe95d9b3 100644 --- a/pym/portage_dep.py +++ b/pym/portage_dep.py @@ -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): """