mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-07 21:58:41 +02:00
- fix indentation (enforceming pattern file argument)
- don't implicitely add .xml to pattern files -- it will probably cause confusion.
This commit is contained in:
@@ -207,12 +207,11 @@ class Osc(cmdln.Cmdln):
|
||||
project = args[0]
|
||||
if len(args) > 1:
|
||||
pattern = args[1]
|
||||
pattern += '.xml'
|
||||
else:
|
||||
pattern = None
|
||||
# enforce pattern argument if needed
|
||||
if opts.edit or opts.file:
|
||||
sys.exit('a pattern file argument is required.')
|
||||
# enforce pattern argument if needed
|
||||
if opts.edit or opts.file:
|
||||
sys.exit('a pattern file argument is required.')
|
||||
|
||||
# show
|
||||
if not opts.edit and not opts.file:
|
||||
|
Reference in New Issue
Block a user