diff options
Diffstat (limited to 'roverlay/ebuild/evars.py')
-rw-r--r-- | roverlay/ebuild/evars.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/roverlay/ebuild/evars.py b/roverlay/ebuild/evars.py index 6ec6a2e..c2e355d 100644 --- a/roverlay/ebuild/evars.py +++ b/roverlay/ebuild/evars.py @@ -96,9 +96,7 @@ class UseExpandListValue ( RE_USENAME = re.compile ( ( '(?P<prefix>.*[/])?' - '(?P<pf>' - '((?P<pn>.*)(?P<pvr>[-][0-9].*([-]r[0-9]+)?))' - '|.*)' + '(?P<pn>[^\[]*)(\[(?P<use>[^\]]*)\])?(?P<pvr>[-][0-9].*([-]r[0-9]+)?)?' ) ) @@ -128,7 +126,7 @@ class UseExpandListValue ( match = self.__class__.RE_USENAME.match ( dep.dep ) if match: return self._get_use_key ( - ( match.group ( "pn" ) or match.group ( "pf" ) ) + ( match.group ( "use" ) or match.group ( "pn" ) ) ) else: raise ValueError ( |