From 4d51bdfc52e490dd8682922b16350859e4eb0240 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 18 Mar 2013 03:21:42 -0700 Subject: [PATCH] insert_category_into_atom: handle wildcard --- pym/_emerge/is_valid_package_atom.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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():] -- 2.26.2