diff --git a/osc/build.py b/osc/build.py index 73183f1e..3bfbb917 100644 --- a/osc/build.py +++ b/osc/build.py @@ -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) diff --git a/osc/commandline.py b/osc/commandline.py index c5e7ad20..52869e11 100755 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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',