Merge lp:~harlowja/cloud-init/rpm-private-release-num into lp:~cloud-init-dev/cloud-init/trunk

Proposed by Joshua Harlow
Status: Merged
Merged at revision: 686
Proposed branch: lp:~harlowja/cloud-init/rpm-private-release-num
Merge into: lp:~cloud-init-dev/cloud-init/trunk
Diff against target: 41 lines (+12/-1)
2 files modified
packages/brpm (+11/-0)
packages/redhat/cloud-init.spec.in (+1/-1)
To merge this branch: bzr merge lp:~harlowja/cloud-init/rpm-private-release-num
Reviewer Review Type Date Requested Status
cloud-init Commiters Pending
Review via email: mp+128603@code.launchpad.net
To post a comment you must log in.
687. By Joshua Harlow

Make the subrelease a new k/v entry that is handled
differently in the rpm spec file template instead
of being joined with the release.

Revision history for this message
Joshua Harlow (harlowja) wrote :

Tried it out and it seems to work, so since this is a rpm only change I'll commit it.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'packages/brpm'
2--- packages/brpm 2012-10-05 18:31:56 +0000
3+++ packages/brpm 2012-10-08 23:36:19 +0000
4@@ -106,6 +106,10 @@
5 subs['version'] = version
6 subs['revno'] = revno
7 subs['release'] = "bzr%s" % (revno)
8+ if args.sub_release is not None:
9+ subs['subrelease'] = "." + str(args.sub_release)
10+ else:
11+ subs['subrelease'] = ''
12 subs['archive_name'] = arc_fn
13
14 cmd = [util.abs_join(find_root(), 'tools', 'read-dependencies')]
15@@ -175,6 +179,13 @@
16 " (default: %(default)s)"),
17 default=False,
18 action='store_true')
19+ parser.add_argument('-s', "--sub-release", dest="sub_release",
20+ metavar="RELEASE",
21+ help=("a 'internal' release number to concat"
22+ " with the bzr version number to form"
23+ " the final version number"),
24+ type=int,
25+ default=None)
26 parser.add_argument("-p", "--patch", dest="patches",
27 help=("include the following patch when building"),
28 default=[],
29
30=== modified file 'packages/redhat/cloud-init.spec.in'
31--- packages/redhat/cloud-init.spec.in 2012-09-27 00:03:07 +0000
32+++ packages/redhat/cloud-init.spec.in 2012-10-08 23:36:19 +0000
33@@ -11,7 +11,7 @@
34
35 Name: cloud-init
36 Version: ${version}
37-Release: ${release}%{?dist}
38+Release: ${release}${subrelease}%{?dist}
39 Summary: Cloud instance init scripts
40
41 Group: System Environment/Base