1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-25 01:16:14 +01:00

- abort on "search --maintained". Do not redirect to the new command automatically, since it has a different logic

This commit is contained in:
Adrian Schröter 2013-02-14 11:31:05 +01:00
parent 93c0a2d88f
commit 55ee5763b0
2 changed files with 5 additions and 2 deletions

2
NEWS
View File

@ -1,7 +1,7 @@
0.139 0.139
- support generic emulator virtualization - support generic emulator virtualization
- added "--host" argument to "osc build" (used to perform the build on a remote host) - added "--host" argument to "osc build" (used to perform the build on a remote host)
(patch by Michal Vyskocil <mvyskocil@suse.cz>) - "search --maintained" is obsolete. Abort on usage.
0.138 0.138
- add support to remove repositories recursively (mostly only usefull for admins) - add support to remove repositories recursively (mostly only usefull for admins)

View File

@ -6349,7 +6349,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
@cmdln.option('-m', '--maintainer', action='store_true', @cmdln.option('-m', '--maintainer', action='store_true',
help='as -i, but only maintainer') help='as -i, but only maintainer')
@cmdln.option('--maintained', action='store_true', @cmdln.option('--maintained', action='store_true',
help='limit search results to packages with maintained attribute set.') help='OBSOLETE: please use maintained command instead.')
@cmdln.option('-M', '--mine', action='store_true', @cmdln.option('-M', '--mine', action='store_true',
help='shorthand for --bugowner --package') help='shorthand for --bugowner --package')
@cmdln.option('--csv', action='store_true', @cmdln.option('--csv', action='store_true',
@ -6392,6 +6392,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
else: else:
search_term = args[0] search_term = args[0]
if opts.maintained:
raise oscerr.WrongOptions('The --maintained option is not anymore supported. Please use the maintained command instead.')
# XXX: is it a good idea to make this the default? # XXX: is it a good idea to make this the default?
# support perl symbols: # support perl symbols:
if re.match('^perl\(\w+(::\w+)*\)$', search_term): if re.match('^perl\(\w+(::\w+)*\)$', search_term):