mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-11 07:06:16 +01:00
cleanups
This commit is contained in:
parent
51d993c1e7
commit
ee68e87474
@ -343,7 +343,7 @@ class Osc(cmdln.Cmdln):
|
|||||||
args = slash_split(args)
|
args = slash_split(args)
|
||||||
if subcmd == 'll':
|
if subcmd == 'll':
|
||||||
opts.verbose = True
|
opts.verbose = True
|
||||||
if subcmd == 'lL' or subcmd == 'LL':
|
if subcmd in ('lL', 'LL'):
|
||||||
opts.verbose = True
|
opts.verbose = True
|
||||||
opts.expand = True
|
opts.expand = True
|
||||||
|
|
||||||
@ -4671,6 +4671,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
if lines:
|
if lines:
|
||||||
print('\n'.join(lines))
|
print('\n'.join(lines))
|
||||||
|
|
||||||
|
|
||||||
@cmdln.option('-f', '--force', action='store_true',
|
@cmdln.option('-f', '--force', action='store_true',
|
||||||
help='add files even if they are excluded by the exclude_glob config option')
|
help='add files even if they are excluded by the exclude_glob config option')
|
||||||
def do_add(self, subcmd, opts, *args):
|
def do_add(self, subcmd, opts, *args):
|
||||||
@ -4701,6 +4702,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
else:
|
else:
|
||||||
addFiles([arg], force=opts.force)
|
addFiles([arg], force=opts.force)
|
||||||
|
|
||||||
|
|
||||||
def do_mkpac(self, subcmd, opts, *args):
|
def do_mkpac(self, subcmd, opts, *args):
|
||||||
"""
|
"""
|
||||||
Create a new package under version control
|
Create a new package under version control
|
||||||
@ -4718,6 +4720,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
|
|
||||||
createPackageDir(args[0])
|
createPackageDir(args[0])
|
||||||
|
|
||||||
|
|
||||||
@cmdln.option('-r', '--recursive', action='store_true',
|
@cmdln.option('-r', '--recursive', action='store_true',
|
||||||
help='If CWD is a project dir then scan all package dirs as well')
|
help='If CWD is a project dir then scan all package dirs as well')
|
||||||
@cmdln.alias('ar')
|
@cmdln.alias('ar')
|
||||||
|
Loading…
Reference in New Issue
Block a user