1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-26 09:56:13 +01: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:
Dr. Peter Poeml 2007-07-19 11:54:13 +00:00
parent a9dbc4bb1d
commit 1945a7a683

View File

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