summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-10-08 16:23:09 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-10-08 16:23:09 -0700
commitaae71d04bf042ac20f9027a43f5b269a6f7c19fc (patch)
tree161e78cad79dd85c1ed80575bec5fd8f4253389b /packages
parent8ff6ba4aaef8fc9a6b5c522cf26854e93f9107f0 (diff)
downloadvyos-cloud-init-aae71d04bf042ac20f9027a43f5b269a6f7c19fc.tar.gz
vyos-cloud-init-aae71d04bf042ac20f9027a43f5b269a6f7c19fc.zip
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.
Diffstat (limited to 'packages')
-rwxr-xr-xpackages/brpm9
1 files changed, 9 insertions, 0 deletions
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=[],