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: 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