1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-22 21:16:16 +01:00

- do_search: '::' isn't a perl specific namespace/package/module separator

This commit is contained in:
Marcus Huewe 2011-01-30 21:37:45 +01:00
parent 61dd1613a6
commit f9b1bd5c18

View File

@ -5172,11 +5172,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
else:
search_term = args[0]
# support perl package names and symbols:
if re.match('^\w+(::\w+)+$', search_term):
search_term = 'perl-' + re.sub('::','-', search_term)
opts.package = True
# XXX: is it a good idea to make this the default?
# support perl symbols:
if re.match('^perl\(\w+(::\w+)*\)$', search_term):
search_term = re.sub('\)','', re.sub('(::|\()','-', search_term))
opts.package = True