Merge ubuntu-release-upgrader:lp.1959343 into ubuntu-release-upgrader:ubuntu/master

Proposed by Steve Langasek
Status: Merged
Merged at revision: 3618cf43c941886c9cef6cd028c170972f9e71c9
Proposed branch: ubuntu-release-upgrader:lp.1959343
Merge into: ubuntu-release-upgrader:ubuntu/master
Diff against target: 46 lines (+20/-1)
2 files modified
DistUpgrade/DistUpgradeController.py (+13/-1)
debian/changelog (+7/-0)
Reviewer Review Type Date Requested Status
Brian Murray Pending
Review via email: mp+414711@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Brian Murray (brian-murray) wrote :

I uploaded this after sorting out the autopkgtest fallout of these changes.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/DistUpgrade/DistUpgradeController.py b/DistUpgrade/DistUpgradeController.py
2index 552678d..38f1a70 100644
3--- a/DistUpgrade/DistUpgradeController.py
4+++ b/DistUpgrade/DistUpgradeController.py
5@@ -1,6 +1,6 @@
6 # DistUpgradeController.py
7 #
8-# Copyright (c) 2004-2008 Canonical
9+# Copyright (c) 2004-2022 Canonical Ltd.
10 #
11 # Author: Michael Vogt <michael.vogt@ubuntu.com>
12 #
13@@ -550,6 +550,18 @@ class DistUpgradeController(object):
14 if entry.line.startswith(
15 "## developers who want to ship their latest software."):
16 continue
17+ if ('/archive.canonical.com' in entry.line or
18+ entry.line.startswith(
19+ "## Uncomment the following two lines to add software from Canonical's") or
20+ entry.line.startswith(
21+ "## 'partner' repository.") or
22+ entry.line.startswith(
23+ "## This software is not part of Ubuntu, but is offered by Canonical and the") or
24+ entry.line.startswith(
25+ "## respective vendors as a service to Ubuntu users")
26+ ):
27+ continue
28+
29 new_list.append(entry)
30 self.sources.list = new_list
31
32diff --git a/debian/changelog b/debian/changelog
33index 3f16e11..450d803 100644
34--- a/debian/changelog
35+++ b/debian/changelog
36@@ -1,3 +1,10 @@
37+ubuntu-release-upgrader (1:22.04.3ubuntu1) UNRELEASED; urgency=medium
38+
39+ * DistUpgrade/DistUpgradeController.py: remove references to
40+ archive.canonical.com from sources.list on upgrade. LP: #1959343.
41+
42+ -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 27 Jan 2022 23:18:00 -0800
43+
44 ubuntu-release-upgrader (1:22.04.3) jammy; urgency=medium
45
46 * DistUpgrade/DistUpgradeController.py: switch from using os.readlink to

Subscribers

People subscribed via source and target branches