From aae71d04bf042ac20f9027a43f5b269a6f7c19fc Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Mon, 8 Oct 2012 16:23:09 -0700 Subject: Add the ability to have a 'private' release number which can be to increment cloud-init while still maintaining the 'major' cloud-init version number from bzr. --- packages/brpm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'packages') diff --git a/packages/brpm b/packages/brpm index 7975e05c..fec6acd8 100755 --- a/packages/brpm +++ b/packages/brpm @@ -106,6 +106,8 @@ def generate_spec_contents(args, tmpl_fn, top_dir, arc_fn): subs['version'] = version subs['revno'] = revno subs['release'] = "bzr%s" % (revno) + if args.sub_release is not None: + subs['release'] += ".%s" % (args.sub_release) subs['archive_name'] = arc_fn cmd = [util.abs_join(find_root(), 'tools', 'read-dependencies')] @@ -175,6 +177,13 @@ def main(): " (default: %(default)s)"), default=False, action='store_true') + parser.add_argument('-s', "--sub-release", dest="sub_release", + metavar="RELEASE", + help=("a 'internal' release number to concat" + " with the bzr version number to form" + " the final version number"), + type=int, + default=None) parser.add_argument("-p", "--patch", dest="patches", help=("include the following patch when building"), default=[], -- cgit v1.2.3