Merge lp:~brian-murray/ubiquity/disable-upgrade into lp:ubiquity

Proposed by Brian Murray
Status: Merged
Approved by: Mathieu Trudel-Lapierre
Approved revision: 6610
Merged at revision: 6610
Proposed branch: lp:~brian-murray/ubiquity/disable-upgrade
Merge into: lp:ubiquity
Diff against target: 92 lines (+5/-34)
4 files modified
debian/changelog (+5/-0)
debian/ubiquity.templates (+0/-9)
tests/test_ubi_partman.py (+0/-11)
ubiquity/plugins/ubi-partman.py (+0/-14)
To merge this branch: bzr merge lp:~brian-murray/ubiquity/disable-upgrade
Reviewer Review Type Date Requested Status
Mathieu Trudel-Lapierre Approve
Review via email: mp+343135@code.launchpad.net

Commit message

Drop the option to upgrade from an old release using ubiquity as it is crashing and leaves users in a broken state. (LP: #1756862)

To post a comment you must log in.
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Looks good, thanks!

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 2018-04-11 00:17:05 +0000
+++ debian/changelog 2018-04-12 21:58:16 +0000
@@ -1,9 +1,14 @@
1ubiquity (18.04.6) UNRELEASED; urgency=medium1ubiquity (18.04.6) UNRELEASED; urgency=medium
22
3 [ Steve Langasek ]
3 * If we are running ubiquity-dm on VT1, we must conflict with4 * If we are running ubiquity-dm on VT1, we must conflict with
4 getty@getty1.service and not rely on some other display manager to do5 getty@getty1.service and not rely on some other display manager to do
5 this for us.6 this for us.
67
8 [ Brian Murray ]
9 * Drop the option to upgrade from an old release using ubiquity as it is
10 crashing and leaves users in a broken state. (LP: #1756862)
11
7 -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 10 Apr 2018 17:14:29 -070012 -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 10 Apr 2018 17:14:29 -0700
813
9ubiquity (18.04.5) bionic; urgency=medium14ubiquity (18.04.5) bionic; urgency=medium
1015
=== modified file 'debian/ubiquity.templates'
--- debian/ubiquity.templates 2018-03-28 12:52:10 +0000
+++ debian/ubiquity.templates 2018-04-12 21:58:16 +0000
@@ -1326,15 +1326,6 @@
1326 <span foreground="darkred">Warning:</span> This will delete all your1326 <span foreground="darkred">Warning:</span> This will delete all your
1327 ${CURDISTRO} programs, documents, photos, music, and any other files.1327 ${CURDISTRO} programs, documents, photos, music, and any other files.
13281328
1329Template: ubiquity/partitioner/ubuntu_upgrade
1330Type: text
1331#flag:comment:1
1332# CURDISTRO is a variable substituted into this string, and may be 'Ubuntu 10.10'
1333# VER is a variable substituted into this string, and may be '11.04'
1334_Description: Upgrade ${CURDISTRO} to ${VER}
1335 Documents, music, and other personal files will be kept. Installed software
1336 will be kept where possible. System-wide settings will be cleared.
1337
1338Template: ubiquity/partitioner/ubuntu_resize1329Template: ubiquity/partitioner/ubuntu_resize
1339Type: text1330Type: text
1340#flag:comment:11331#flag:comment:1
13411332
=== modified file 'tests/test_ubi_partman.py'
--- tests/test_ubi_partman.py 2014-10-16 00:04:08 +0000
+++ tests/test_ubi_partman.py 2018-04-12 21:58:16 +0000
@@ -568,14 +568,6 @@
568 desc = self.page.extended_description(question)568 desc = self.page.extended_description(question)
569 use_device = ubi_partman.PartitioningOption(title, desc)569 use_device = ubi_partman.PartitioningOption(title, desc)
570570
571 question = 'ubiquity/partitioner/ubuntu_upgrade'
572 question_has_variables(question, ['CURDISTRO', 'VER'])
573 self.page.db.subst(question, 'CURDISTRO', operating_system)
574 self.page.db.subst(question, 'VER', self.release.version)
575 title = self.page.description(question)
576 desc = self.page.extended_description(question)
577 reuse = ubi_partman.PartitioningOption(title, desc)
578
579 operating_systems, ubuntu_systems = \571 operating_systems, ubuntu_systems = \
580 self.page.calculate_operating_systems(layout)572 self.page.calculate_operating_systems(layout)
581 options = self.page.calculate_autopartitioning_options(573 options = self.page.calculate_autopartitioning_options(
@@ -590,9 +582,6 @@
590 self.assertIn('manual', options)582 self.assertIn('manual', options)
591 self.assertCountEqual(self.manual, options['manual'])583 self.assertCountEqual(self.manual, options['manual'])
592584
593 self.assertIn('reuse', options)
594 self.assertCountEqual(reuse, options['reuse'])
595
596 # 'This computer currently has Ubuntu 12.04 on it.'585 # 'This computer currently has Ubuntu 12.04 on it.'
597 def test_same_ubuntu_only(self):586 def test_same_ubuntu_only(self):
598 operating_system = 'Ubuntu 12.04'587 operating_system = 'Ubuntu 12.04'
599588
=== modified file 'ubiquity/plugins/ubi-partman.py'
--- ubiquity/plugins/ubi-partman.py 2018-03-09 10:25:11 +0000
+++ ubiquity/plugins/ubi-partman.py 2018-04-12 21:58:16 +0000
@@ -2077,20 +2077,6 @@
2077 desc = self.extended_description(q)2077 desc = self.extended_description(q)
2078 return PartitioningOption(title, desc)2078 return PartitioningOption(title, desc)
20792079
2080 if current_version <= new_version:
2081 # "Windows (or Mac, ...) and an older version of Ubuntu are
2082 # present" case
2083
2084 # Only allow reuse with newer install media
2085 # also block reuse when invalid version number or codename
2086
2087 q = 'ubiquity/partitioner/ubuntu_upgrade'
2088 self.db.subst(q, 'CURDISTRO', ubuntu)
2089 self.db.subst(
2090 q, 'VER', "%s %s" % (release.name, release.version))
2091 title = self.description(q)
2092 desc = self.extended_description(q)
2093 return PartitioningOption(title, desc)
2094 return None2080 return None
20952081
2096 def calculate_autopartitioning_heading(self, operating_systems,2082 def calculate_autopartitioning_heading(self, operating_systems,

Subscribers

People subscribed via source and target branches

to status/vote changes: