Merge lp:~andreserl/maas/fix_calculation_of_version into lp:~maas-maintainers/maas/packaging

Proposed by Andres Rodriguez
Status: Merged
Approved by: Andres Rodriguez
Approved revision: 563
Merged at revision: 563
Proposed branch: lp:~andreserl/maas/fix_calculation_of_version
Merge into: lp:~maas-maintainers/maas/packaging
Diff against target: 31 lines (+3/-3)
2 files modified
debian/changelog (+1/-1)
release-build (+2/-2)
To merge this branch: bzr merge lp:~andreserl/maas/fix_calculation_of_version
Reviewer Review Type Date Requested Status
Andres Rodriguez (community) Approve
Review via email: mp+326695@code.launchpad.net

Commit message

Improve the version calculation.

To post a comment you must log in.
Revision history for this message
Andres Rodriguez (andreserl) wrote :

selfie!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2017-06-27 16:56:57 +0000
+++ debian/changelog 2017-07-03 16:41:30 +0000
@@ -6,7 +6,7 @@
6 * Add maas-beacon-monitor script to sudoers file.6 * Add maas-beacon-monitor script to sudoers file.
7 (Allows observation of UDP traffic sent to port 5240.)7 (Allows observation of UDP traffic sent to port 5240.)
88
9 -- Mike Pontillo <mike.pontillo@canonical.com> Wed, 21 Jun 2017 08:36:26 -07009 -- Andres Rodriguez <andreserl@ubuntu.com> Wed, 28 Jun 2017 14:53:05 -0400
1010
11maas (2.2.0+bzr6054-0ubuntu2) artful; urgency=medium11maas (2.2.0+bzr6054-0ubuntu2) artful; urgency=medium
1212
1313
=== modified file 'release-build'
--- release-build 2017-06-23 13:30:50 +0000
+++ release-build 2017-07-03 16:41:30 +0000
@@ -29,12 +29,12 @@
29#REV=$(head -n 1 debian/changelog | sed -rne 's,.*[+~.]git([0-9a-zA-Z]+).*,\1,p')29#REV=$(head -n 1 debian/changelog | sed -rne 's,.*[+~.]git([0-9a-zA-Z]+).*,\1,p')
30REV_COUNT=$(git -C $1 rev-list --count $COMMIT)30REV_COUNT=$(git -C $1 rev-list --count $COMMIT)
31REV_SHORT=$(git -C $1 rev-parse --short $COMMIT)31REV_SHORT=$(git -C $1 rev-parse --short $COMMIT)
32FULL_VER="$MAJOR_VER+git$REV_COUNT.$REV_SHORT"32FULL_VER="$MAJOR_VER-$REV_COUNT-g$REV_SHORT"
33TARBALL="maas_$FULL_VER.orig.tar.gz"33TARBALL="maas_$FULL_VER.orig.tar.gz"
3434
35get_orig_source() {35get_orig_source() {
36 branch="$1"36 branch="$1"
37 git -C $branch archive --format=tar.gz --prefix="maas-$FULL_VER.orig/" $COMMIT -o $TARBALL $REV37 git -C $branch archive --format=tar.gz --prefix="maas-$FULL_VER.orig/" $COMMIT -o $TARBALL
38 38
39}39}
40# Obtain the tarball from a local branch40# Obtain the tarball from a local branch

Subscribers

People subscribed via source and target branches

to all changes: