1
0
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:
Dr. Peter Poeml 2007-08-14 11:26:13 +00:00
parent cdf91d7f39
commit da6f6c4a8a
2 changed files with 4 additions and 0 deletions

View File

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

View File

@ -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',