1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-21 09:46:19 +02:00
This commit is contained in:
Dirk Müller 2022-10-18 23:40:52 +02:00
parent 51d993c1e7
commit ee68e87474
No known key found for this signature in database

View File

@ -343,7 +343,7 @@ class Osc(cmdln.Cmdln):
args = slash_split(args)
if subcmd == 'll':
opts.verbose = True
if subcmd == 'lL' or subcmd == 'LL':
if subcmd in ('lL', 'LL'):
opts.verbose = True
opts.expand = True
@ -4671,6 +4671,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if lines:
print('\n'.join(lines))
@cmdln.option('-f', '--force', action='store_true',
help='add files even if they are excluded by the exclude_glob config option')
def do_add(self, subcmd, opts, *args):
@ -4701,6 +4702,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
else:
addFiles([arg], force=opts.force)
def do_mkpac(self, subcmd, opts, *args):
"""
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])
@cmdln.option('-r', '--recursive', action='store_true',
help='If CWD is a project dir then scan all package dirs as well')
@cmdln.alias('ar')