mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-23 05:26:16 +01:00
- do_search: '::' isn't a perl specific namespace/package/module separator
This commit is contained in:
parent
61dd1613a6
commit
f9b1bd5c18
@ -5172,11 +5172,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
else:
|
else:
|
||||||
search_term = args[0]
|
search_term = args[0]
|
||||||
|
|
||||||
# support perl package names and symbols:
|
# XXX: is it a good idea to make this the default?
|
||||||
if re.match('^\w+(::\w+)+$', search_term):
|
# support perl symbols:
|
||||||
search_term = 'perl-' + re.sub('::','-', search_term)
|
|
||||||
opts.package = True
|
|
||||||
|
|
||||||
if re.match('^perl\(\w+(::\w+)*\)$', search_term):
|
if re.match('^perl\(\w+(::\w+)*\)$', search_term):
|
||||||
search_term = re.sub('\)','', re.sub('(::|\()','-', search_term))
|
search_term = re.sub('\)','', re.sub('(::|\()','-', search_term))
|
||||||
opts.package = True
|
opts.package = True
|
||||||
|
Loading…
Reference in New Issue
Block a user