Merge lp:~laney/ubiquity/package-removal-arch into lp:ubiquity

Proposed by Iain Lane
Status: Merged
Merged at revision: 6342
Proposed branch: lp:~laney/ubiquity/package-removal-arch
Merge into: lp:ubiquity
Diff against target: 53 lines (+17/-4)
2 files modified
debian/changelog (+9/-0)
scripts/plugininstall.py (+8/-4)
To merge this branch: bzr merge lp:~laney/ubiquity/package-removal-arch
Reviewer Review Type Date Requested Status
Mathieu Trudel-Lapierre Approve
Review via email: mp+274281@code.launchpad.net

Description of the change

When looking at manifest-*, discard arch qualifiers. Packages are recorded without those, so we need to compare without them too.

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

I can't reproduce the fix; even just reproducing the bug is tricky.

It looks fine, but it doesn't seem to fix things.

review: Needs Fixing
6338. By Mathieu Trudel-Lapierre

Automatic update of included source packages: console-setup
1.108ubuntu8, localechooser 2.65ubuntu2.

6339. By Mathieu Trudel-Lapierre

d-i/patches/localechooser-post-base-installer.patch: update patch for
new languagelist format.

6340. By Mathieu Trudel-Lapierre

Set a height_request property for the details extender (the thing you can
click to get syslog from the ubiquity slideshow window). (LP: #1507330)

6341. By Mathieu Trudel-Lapierre

releasing package ubiquity version 2.21.34

6342. By Mathieu Trudel-Lapierre

scripts/plugininstall.py: Ignore ':arch' in package names when deciding
which packages to keep after installing. We keep track of installed
packages without arch, so should remove it when doing this comparison.
(LP: #1503297)

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

I'm bad, this is fine.

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-01 21:28:45 +0000
3+++ debian/changelog 2015-10-13 16:11:12 +0000
4@@ -1,3 +1,12 @@
5+ubiquity (2.21.34) UNRELEASED; urgency=medium
6+
7+ * scripts/plugininstall.py: Ignore ':arch' in package names when deciding
8+ which packages to keep after installing. We keep track of installed
9+ packages without arch, so should remove it when doing this comparison.
10+ (LP: #1503297)
11+
12+ -- Iain Lane <iain.lane@canonical.com> Tue, 13 Oct 2015 16:46:04 +0100
13+
14 ubiquity (2.21.33) wily; urgency=medium
15
16 * Automatic update of included source packages: tzsetup 1:0.66ubuntu2.
17
18=== modified file 'scripts/plugininstall.py'
19--- scripts/plugininstall.py 2014-12-21 05:57:59 +0000
20+++ scripts/plugininstall.py 2015-10-13 16:11:12 +0000
21@@ -1418,24 +1418,28 @@
22 with open(manifest_remove) as manifest_file:
23 for line in manifest_file:
24 if line.strip() != '' and not line.startswith('#'):
25- difference.add(line.split()[0])
26+ pkg = line.split(':')[0]
27+ difference.add(pkg.split()[0])
28 live_packages = set()
29 with open(manifest) as manifest_file:
30 for line in manifest_file:
31 if line.strip() != '' and not line.startswith('#'):
32- live_packages.add(line.split()[0])
33+ pkg = line.split(':')[0]
34+ live_packages.add(pkg.split()[0])
35 desktop_packages = live_packages - difference
36 elif os.path.exists(manifest_desktop) and os.path.exists(manifest):
37 desktop_packages = set()
38 with open(manifest_desktop) as manifest_file:
39 for line in manifest_file:
40 if line.strip() != '' and not line.startswith('#'):
41- desktop_packages.add(line.split()[0])
42+ pkg = line.split(':')[0]
43+ desktop_packages.add(pkg.split()[0])
44 live_packages = set()
45 with open(manifest) as manifest_file:
46 for line in manifest_file:
47 if line.strip() != '' and not line.startswith('#'):
48- live_packages.add(line.split()[0])
49+ pkg = line.split(':')[0]
50+ live_packages.add(pkg.split()[0])
51 difference = live_packages - desktop_packages
52 else:
53 difference = set()

Subscribers

People subscribed via source and target branches

to status/vote changes: