mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-27 02:16:12 +01:00
build: add --changelog option to force update of the package changelog from a changes file
This commit is contained in:
parent
cdf91d7f39
commit
da6f6c4a8a
@ -217,6 +217,8 @@ def main(opts, argv):
|
||||
buildargs.append('--clean')
|
||||
if opts.noinit:
|
||||
buildargs.append('--noinit')
|
||||
if opts.changelog:
|
||||
buildargs.append('--changelog')
|
||||
buildargs = ' '.join(buildargs)
|
||||
|
||||
|
||||
|
@ -1287,6 +1287,8 @@ class Osc(cmdln.Cmdln):
|
||||
|
||||
@cmdln.option('--clean', action='store_true',
|
||||
help='Delete old build root before initializing it')
|
||||
@cmdln.option('--changelog', action='store_true',
|
||||
help='Force update of package changelog from a changes file')
|
||||
@cmdln.option('--noinit', '--no-init', action='store_true',
|
||||
help='Skip initialization of build root and start with build immediately.')
|
||||
@cmdln.option('-p', '--prefer-pkgs', metavar='DIR', action='append',
|
||||
|
Loading…
Reference in New Issue
Block a user