Merge ~andreserl/maas:prepare_for_bionic into maas:master

Proposed by Andres Rodriguez
Status: Merged
Approved by: Andres Rodriguez
Approved revision: ddac3368749fb3203b4ac0e5b6649f9b90c5c8c7
Merge reported by: MAAS Lander
Merged at revision: not available
Proposed branch: ~andreserl/maas:prepare_for_bionic
Merge into: maas:master
Diff against target: 86 lines (+14/-27)
2 files modified
snap/snapcraft.yaml (+11/-6)
utilities/release-build (+3/-21)
Reviewer Review Type Date Requested Status
Newell Jensen (community) Needs Information
Blake Rouse (community) Approve
MAAS Lander Approve
Review via email: mp+335274@code.launchpad.net

Commit message

Update snap and packaging generation scripts to work on bionic

To post a comment you must log in.
Revision history for this message
Blake Rouse (blake-rouse) :
review: Needs Information
Revision history for this message
Andres Rodriguez (andreserl) :
Revision history for this message
MAAS Lander (maas-lander) wrote :

UNIT TESTS
-b prepare_for_bionic lp:~andreserl/maas into -b master lp:~maas-committers/maas

STATUS: SUCCESS
COMMIT: ddac3368749fb3203b4ac0e5b6649f9b90c5c8c7

review: Approve
Revision history for this message
Blake Rouse (blake-rouse) :
review: Needs Fixing
Revision history for this message
Andres Rodriguez (andreserl) :
Revision history for this message
Blake Rouse (blake-rouse) :
review: Approve
Revision history for this message
Andres Rodriguez (andreserl) :
Revision history for this message
Newell Jensen (newell-jensen) wrote :

I think you need to update the Makefile as well don't you? It has 3.5 hardcoded in there for make sync-dev-snap.

review: Needs Information
Revision history for this message
MAAS Lander (maas-lander) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 6730199..be06561 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -1,6 +1,6 @@
1name: maas1name: maas
2version: git2version: git
3version-script: utilities/calc-snap-version 3version-script: utilities/calc-snap-version
4summary: Metal as a Service4summary: Metal as a Service
5description: |5description: |
6 Total automation of your physical servers for amazing data center operational efficiency.6 Total automation of your physical servers for amazing data center operational efficiency.
@@ -116,12 +116,17 @@ parts:
116 - python3-simplejson116 - python3-simplejson
117 - python3-markupsafe117 - python3-markupsafe
118 organize:118 organize:
119 lib/python3.5/site-packages/etc: etc119 lib/python3.*/site-packages/etc/*: etc
120 lib/python3.5/site-packages/usr: usr120 lib/python3.*/site-packages/usr/bin/*: usr/bin
121 lib/python3.*/site-packages/usr/lib/*: usr/lib
122 lib/python3.*/site-packages/usr/sbin/*: usr/sbin
123 lib/python3.*/site-packages/usr/share/*: usr/share
121 usr/lib/curtin/helpers: usr/lib/python3/dist-packages/helpers124 usr/lib/curtin/helpers: usr/lib/python3/dist-packages/helpers
122 filesets:125 filesets:
123 remove:126 remove:
124 - -lib/python3.5/site-packages/maastesting127 - -lib/python3.*/site-packages/etc
128 - -lib/python3.*/site-packages/usr
129 - -lib/python3/dist-packages/maastesting
125 - -share130 - -share
126 - -usr/include/libjs-angularjs131 - -usr/include/libjs-angularjs
127 - -usr/share/applications132 - -usr/share/applications
@@ -148,8 +153,8 @@ parts:
148 plugin: dump153 plugin: dump
149 source: twisted/plugins154 source: twisted/plugins
150 organize:155 organize:
151 maasrackd.py: lib/python3.5/site-packages/twisted/plugins/maasrackd.py156 maasrackd.py: usr/lib/python3/dist-packages/twisted/plugins/maasrackd.py
152 maasregiond.py: lib/python3.5/site-packages/twisted/plugins/maasregiond.py157 maasregiond.py: usr/lib/python3/dist-packages/twisted/plugins/maasregiond.py
153 snap:158 snap:
154 plugin: dump159 plugin: dump
155 source: snap160 source: snap
diff --git a/utilities/release-build b/utilities/release-build
index 36a21f9..3c0a5af 100755
--- a/utilities/release-build
+++ b/utilities/release-build
@@ -67,7 +67,7 @@ TARBALL="maas_$FULL_VER.orig.tar.gz"
6767
68get_orig_source() {68get_orig_source() {
69 git archive --format=tar.gz --prefix="${PKG}-${FULL_VER}.orig/" ${COMMIT} -o ${TARBALL}69 git archive --format=tar.gz --prefix="${PKG}-${FULL_VER}.orig/" ${COMMIT} -o ${TARBALL}
70 70
71}71}
72# Obtain the tarball from a local branch72# Obtain the tarball from a local branch
73get_orig_source73get_orig_source
@@ -84,26 +84,8 @@ tar zxvf ${PKG}_${FULL_VER}.orig.tar.gz
84cd "${PKG}-${FULL_VER}.orig/"84cd "${PKG}-${FULL_VER}.orig/"
85cp -r $ROOTDIR/debian .85cp -r $ROOTDIR/debian .
8686
87if echo "$PACKAGE_DISTROS" | grep -q "xenial"; then87if echo "$PACKAGE_DISTROS" | grep -q "bionic"; then
88 cp $ROOTDIR/debian/changelog debian/changelog88 cp $ROOTDIR/debian/changelog debian/changelog
89 sed -i "s/) UNRELEASED;/~16.04.1) xenial;/i" debian/changelog89 sed -i "s/) UNRELEASED;/~18.04.1) bionic;/i" debian/changelog
90 debuild -S -sa90 debuild -S -sa
91fi91fi
92
93if echo "$PACKAGE_DISTROS" | grep -q "yakkety"; then
94 cp $ROOTDIR/debian/changelog debian/changelog
95 sed -i "s/) UNRELEASED;/~16.10.1) yakkety;/" debian/changelog
96 debuild -S
97fi
98
99if echo "$PACKAGE_DISTROS" | grep -q "zesty"; then
100 cp $ROOTDIR/debian/changelog debian/changelog
101 sed -i "s/) UNRELEASED;/~17.04.1) zesty;/" debian/changelog
102 debuild -S
103fi
104
105if echo "$PACKAGE_DISTROS" | grep -q "artful"; then
106 cp $ROOTDIR/debian/changelog debian/changelog
107 sed -i "s/) UNRELEASED;/~17.10.1) artful;/" debian/changelog
108 debuild -S
109fi

Subscribers

People subscribed via source and target branches