From: Zac Medico Date: Mon, 18 Mar 2013 10:21:42 +0000 (-0700) Subject: insert_category_into_atom: handle wildcard X-Git-Tag: v2.2.0_alpha167~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4d51bdfc52e490dd8682922b16350859e4eb0240;p=portage.git insert_category_into_atom: handle wildcard --- diff --git a/pym/_emerge/is_valid_package_atom.py b/pym/_emerge/is_valid_package_atom.py index c4f6ffdf3..112afc1ec 100644 --- a/pym/_emerge/is_valid_package_atom.py +++ b/pym/_emerge/is_valid_package_atom.py @@ -1,11 +1,12 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 import re from portage.dep import isvalidatom def insert_category_into_atom(atom, category): - alphanum = re.search(r'\w', atom, re.UNICODE) + # Handle '*' character for "extended syntax" wildcard support. + alphanum = re.search(r'[\*\w]', atom, re.UNICODE) if alphanum: ret = atom[:alphanum.start()] + "%s/" % category + \ atom[alphanum.start():]