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
1diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
2index 6730199..be06561 100644
3--- a/snap/snapcraft.yaml
4+++ b/snap/snapcraft.yaml
5@@ -1,6 +1,6 @@
6 name: maas
7 version: git
8-version-script: utilities/calc-snap-version
9+version-script: utilities/calc-snap-version
10 summary: Metal as a Service
11 description: |
12 Total automation of your physical servers for amazing data center operational efficiency.
13@@ -116,12 +116,17 @@ parts:
14 - python3-simplejson
15 - python3-markupsafe
16 organize:
17- lib/python3.5/site-packages/etc: etc
18- lib/python3.5/site-packages/usr: usr
19+ lib/python3.*/site-packages/etc/*: etc
20+ lib/python3.*/site-packages/usr/bin/*: usr/bin
21+ lib/python3.*/site-packages/usr/lib/*: usr/lib
22+ lib/python3.*/site-packages/usr/sbin/*: usr/sbin
23+ lib/python3.*/site-packages/usr/share/*: usr/share
24 usr/lib/curtin/helpers: usr/lib/python3/dist-packages/helpers
25 filesets:
26 remove:
27- - -lib/python3.5/site-packages/maastesting
28+ - -lib/python3.*/site-packages/etc
29+ - -lib/python3.*/site-packages/usr
30+ - -lib/python3/dist-packages/maastesting
31 - -share
32 - -usr/include/libjs-angularjs
33 - -usr/share/applications
34@@ -148,8 +153,8 @@ parts:
35 plugin: dump
36 source: twisted/plugins
37 organize:
38- maasrackd.py: lib/python3.5/site-packages/twisted/plugins/maasrackd.py
39- maasregiond.py: lib/python3.5/site-packages/twisted/plugins/maasregiond.py
40+ maasrackd.py: usr/lib/python3/dist-packages/twisted/plugins/maasrackd.py
41+ maasregiond.py: usr/lib/python3/dist-packages/twisted/plugins/maasregiond.py
42 snap:
43 plugin: dump
44 source: snap
45diff --git a/utilities/release-build b/utilities/release-build
46index 36a21f9..3c0a5af 100755
47--- a/utilities/release-build
48+++ b/utilities/release-build
49@@ -67,7 +67,7 @@ TARBALL="maas_$FULL_VER.orig.tar.gz"
50
51 get_orig_source() {
52 git archive --format=tar.gz --prefix="${PKG}-${FULL_VER}.orig/" ${COMMIT} -o ${TARBALL}
53-
54+
55 }
56 # Obtain the tarball from a local branch
57 get_orig_source
58@@ -84,26 +84,8 @@ tar zxvf ${PKG}_${FULL_VER}.orig.tar.gz
59 cd "${PKG}-${FULL_VER}.orig/"
60 cp -r $ROOTDIR/debian .
61
62-if echo "$PACKAGE_DISTROS" | grep -q "xenial"; then
63+if echo "$PACKAGE_DISTROS" | grep -q "bionic"; then
64 cp $ROOTDIR/debian/changelog debian/changelog
65- sed -i "s/) UNRELEASED;/~16.04.1) xenial;/i" debian/changelog
66+ sed -i "s/) UNRELEASED;/~18.04.1) bionic;/i" debian/changelog
67 debuild -S -sa
68 fi
69-
70-if echo "$PACKAGE_DISTROS" | grep -q "yakkety"; then
71- cp $ROOTDIR/debian/changelog debian/changelog
72- sed -i "s/) UNRELEASED;/~16.10.1) yakkety;/" debian/changelog
73- debuild -S
74-fi
75-
76-if echo "$PACKAGE_DISTROS" | grep -q "zesty"; then
77- cp $ROOTDIR/debian/changelog debian/changelog
78- sed -i "s/) UNRELEASED;/~17.04.1) zesty;/" debian/changelog
79- debuild -S
80-fi
81-
82-if echo "$PACKAGE_DISTROS" | grep -q "artful"; then
83- cp $ROOTDIR/debian/changelog debian/changelog
84- sed -i "s/) UNRELEASED;/~17.10.1) artful;/" debian/changelog
85- debuild -S
86-fi

Subscribers

People subscribed via source and target branches