Merge lp:~rodsmith/maas-cert-server/auto-mirror-versions into lp:~hardware-certification/maas-cert-server/trunk

Proposed by Rod Smith
Status: Merged
Approved by: Jeff Lane 
Approved revision: 36
Merged at revision: 36
Proposed branch: lp:~rodsmith/maas-cert-server/auto-mirror-versions
Merge into: lp:~hardware-certification/maas-cert-server/trunk
Diff against target: 31 lines (+12/-1)
2 files modified
debian/changelog (+7/-0)
usr/sbin/maniacs-setup (+5/-1)
To merge this branch: bzr merge lp:~rodsmith/maas-cert-server/auto-mirror-versions
Reviewer Review Type Date Requested Status
Jeff Lane  Approve
Review via email: mp+275375@code.launchpad.net

Description of the change

maas-cert-server now determines eligible versions for mirroring from web-based documents rather than from a hard-coded list. This was discussed some time ago, but today's release of Wily makes this update timely.

To post a comment you must log in.
Revision history for this message
Jeff Lane  (bladernr) wrote :

Cool, thanks for fixing this.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2015-10-16 20:46:15 +0000
3+++ debian/changelog 2015-10-22 15:23:40 +0000
4@@ -1,3 +1,10 @@
5+maas-cert-server (0.2.8-0ppa1) trusty; urgency=medium
6+
7+ * Fixed bug 1508982 -- programmatically determine which Ubuntu
8+ releases are supported and therefore eligible for mirroring.
9+
10+ -- Rod Smith <rod.smith@canonical.com> Thu, 22 Oct 2015 11:14:02 -0400
11+
12 maas-cert-server (0.2.7-0ppa1) trusty; urgency=medium
13
14 * Fixed bug 1506598, which made maniacs-setup fail under MAAS 1.9
15
16=== modified file 'usr/sbin/maniacs-setup'
17--- usr/sbin/maniacs-setup 2015-10-16 20:46:15 +0000
18+++ usr/sbin/maniacs-setup 2015-10-22 15:23:40 +0000
19@@ -328,7 +328,11 @@
20 cp -a /var/spool/apt-mirror/* /srv
21 write_starting_mirror_config
22 i=0
23- for release in precise trusty vivid ; do
24+ rm -f /tmp/meta-release
25+ wget -P /tmp http://changelogs.ubuntu.com/meta-release
26+ local available=`grep -B 4 "Supported: 1" /tmp/meta-release | grep Dist | cut -d " " -f 2`
27+ rm -f /tmp/meta-release
28+ for release in $available ; do
29 get_yn "* Do you want to mirror $release" "Y"
30 if [ $YN = "Y" ] ; then
31 releases[i]="$release"

Subscribers

People subscribed via source and target branches

to status/vote changes: