← Back to team overview

cloud-init-dev team mailing list archive

[Merge] lp:~harlowja/cloud-init/rpm-private-release-num into lp:cloud-init

 

Joshua Harlow has proposed merging lp:~harlowja/cloud-init/rpm-private-release-num into lp:cloud-init.

Requested reviews:
  cloud init development team (cloud-init-dev)

For more details, see:
https://code.launchpad.net/~harlowja/cloud-init/rpm-private-release-num/+merge/128603
-- 
https://code.launchpad.net/~harlowja/cloud-init/rpm-private-release-num/+merge/128603
Your team cloud init development team is requested to review the proposed merge of lp:~harlowja/cloud-init/rpm-private-release-num into lp:cloud-init.
=== modified file 'packages/brpm'
--- packages/brpm	2012-10-05 18:31:56 +0000
+++ packages/brpm	2012-10-08 23:25:29 +0000
@@ -106,6 +106,8 @@
     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 @@
                               " (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=[],


Follow ups