Hi Andrew, On Tue, Aug 14, 2007 at 12:51:18PM +0200, Andrew Beekhof wrote:
I just noticed that support for --changelog was removed from "osc build" This breaks local debian builds for people using {package}.changes (since there will be no entry describing the release).
it forces the execution of changelog2spec. i believe this is the default on the BS but obviously not for local builds.
I see.
1299: @cmdln.option('--changelog', '--no-changelog', action='store_true',
While I see that: the cmdln.option() works a bit different. It doesn't take a "no-" form. It takes different names for the same thing, like '-v', '--verbose' I am adding this: Index: osc/commandline.py =================================================================== --- osc/commandline.py (revision 1972) +++ osc/commandline.py (working copy) @@ -1287,6 +1287,8 @@ @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', Index: osc/build.py =================================================================== --- osc/build.py (revision 1971) +++ osc/build.py (working copy) @@ -217,6 +217,8 @@ buildargs.append('--clean') if opts.noinit: buildargs.append('--noinit') + if opts.changelog: + buildargs.append('--changelog') buildargs = ' '.join(buildargs) Peter -- "WARNING: This bug is visible to non-employees. Please be respectful!" SUSE LINUX Products GmbH Research & Development