Merge lp:~brian-murray/ubuntu-archive-tools/more-python3 into lp:ubuntu-archive-tools

Proposed by Brian Murray
Status: Merged
Merged at revision: 1400
Proposed branch: lp:~brian-murray/ubuntu-archive-tools/more-python3
Merge into: lp:ubuntu-archive-tools
Diff against target: 661 lines (+60/-114)
27 files modified
architecture-mismatches (+1/-3)
archive-cruft-check (+1/-3)
bootstrap-package (+1/-2)
copy-report (+3/-5)
derive-distribution (+5/-9)
get-distro-update-metrics (+3/-3)
import-blacklist (+1/-3)
iso-deb-size-compare (+4/-6)
kernel-overrides (+4/-8)
kernel_series.py (+8/-11)
list-builds-on-tracker (+1/-1)
nbs-report (+1/-3)
orphaned-sources (+3/-7)
package-subscribers (+1/-3)
packageset-report (+1/-1)
pocket-mismatches (+1/-3)
point-release-snapshot (+1/-3)
post-amis-to-iso-tracker (+1/-3)
post-image-to-iso-tracker (+1/-1)
priority-mismatches (+2/-4)
promote-to-release (+1/-3)
publish-image-set (+5/-7)
queuediff (+5/-8)
regression-proposed-bug-search (+2/-7)
rescore-ppa-builds (+1/-3)
sync-blacklist (+1/-3)
utils.py (+1/-1)
To merge this branch: bzr merge lp:~brian-murray/ubuntu-archive-tools/more-python3
Reviewer Review Type Date Requested Status
Łukasz Zemczak Pending
Steve Langasek Pending
Review via email: mp+393198@code.launchpad.net

Commit message

Move more tools to python3.

To post a comment you must log in.
1420. By Brian Murray

move package-subscribers to python3

1421. By Brian Murray

move priority-mismatches to python3

1422. By Brian Murray

move point-release-snapshot to python3

1423. By Brian Murray

switch shebang for priority-mismatches and point-release-snapshot

1424. By Brian Murray

move pocket-mismatches to python3

1425. By Brian Murray

move kernel_series.py to python3

1426. By Brian Murray

move copy-report to python3

1427. By Brian Murray

Move architecture-mismatches to python3

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'architecture-mismatches'
--- architecture-mismatches 2020-01-25 02:19:13 +0000
+++ architecture-mismatches 2020-11-02 20:20:51 +0000
@@ -1,4 +1,4 @@
1#!/usr/bin/env python2.71#!/usr/bin/python3
22
3# Check for override mismatches between architectures3# Check for override mismatches between architectures
4# Copyright (C) 2005, 2008, 2009, 2010, 2011, 2012 Canonical Ltd.4# Copyright (C) 2005, 2008, 2009, 2010, 2011, 2012 Canonical Ltd.
@@ -18,8 +18,6 @@
18# along with this program; if not, write to the Free Software18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA19# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2020
21from __future__ import print_function
22
23import atexit21import atexit
24from collections import defaultdict22from collections import defaultdict
25import csv23import csv
2624
=== modified file 'archive-cruft-check'
--- archive-cruft-check 2020-01-25 02:19:13 +0000
+++ archive-cruft-check 2020-11-02 20:20:51 +0000
@@ -1,9 +1,7 @@
1#! /usr/bin/python2.71#! /usr/bin/python3
2# Copyright 2009-2012 Canonical Ltd. This software is licensed under the2# Copyright 2009-2012 Canonical Ltd. This software is licensed under the
3# GNU Affero General Public License version 3.3# GNU Affero General Public License version 3.
44
5from __future__ import print_function
6
7from collections import defaultdict5from collections import defaultdict
8import logging6import logging
9import optparse7import optparse
108
=== modified file 'bootstrap-package'
--- bootstrap-package 2020-01-25 02:19:13 +0000
+++ bootstrap-package 2020-11-02 20:20:51 +0000
@@ -1,4 +1,4 @@
1#! /usr/bin/python2.71#! /usr/bin/python3
22
3# Copyright (C) 2016 Canonical Ltd.3# Copyright (C) 2016 Canonical Ltd.
4# Author: Colin Watson <cjwatson@ubuntu.com>4# Author: Colin Watson <cjwatson@ubuntu.com>
@@ -17,7 +17,6 @@
1717
18"""Bootstrap a package build using injected build-dependencies."""18"""Bootstrap a package build using injected build-dependencies."""
1919
20from __future__ import print_function
21import sys20import sys
2221
23from optparse import (22from optparse import (
2423
=== modified file 'copy-report'
--- copy-report 2020-01-25 02:19:13 +0000
+++ copy-report 2020-11-02 20:20:51 +0000
@@ -1,4 +1,4 @@
1#! /usr/bin/env python2.71#! /usr/bin/python3
22
3from __future__ import print_function3from __future__ import print_function
44
@@ -11,10 +11,8 @@
11import shutil11import shutil
12import subprocess12import subprocess
13import tempfile13import tempfile
14try:14
15 from urllib.parse import unquote15from urllib.parse import unquote
16except ImportError:
17 from urllib import unquote
1816
19import apt_pkg17import apt_pkg
20from launchpadlib.launchpad import Launchpad18from launchpadlib.launchpad import Launchpad
2119
=== modified file 'derive-distribution'
--- derive-distribution 2020-01-25 02:19:13 +0000
+++ derive-distribution 2020-11-02 20:20:51 +0000
@@ -1,4 +1,4 @@
1#! /usr/bin/python2.71#! /usr/bin/python3
22
3# Copyright (C) 2014 Canonical Ltd.3# Copyright (C) 2014 Canonical Ltd.
4# Author: Colin Watson <cjwatson@ubuntu.com>4# Author: Colin Watson <cjwatson@ubuntu.com>
@@ -19,8 +19,6 @@
1919
20"""Copy a subset of one distribution into a derived distribution."""20"""Copy a subset of one distribution into a derived distribution."""
2121
22from __future__ import print_function
23
24import atexit22import atexit
25from collections import OrderedDict23from collections import OrderedDict
26from contextlib import closing, contextmanager24from contextlib import closing, contextmanager
@@ -33,10 +31,8 @@
33import sys31import sys
34import tempfile32import tempfile
35import time33import time
36try:34
37 from urllib.request import urlopen35from urllib.request import urlopen
38except ImportError:
39 from urllib2 import urlopen
4036
41import apt_pkg37import apt_pkg
42from dateutil import parser as dateutil_parser38from dateutil import parser as dateutil_parser
@@ -217,7 +213,7 @@
217 for inner_seed in germinator._inner_seeds(seed):213 for inner_seed in germinator._inner_seeds(seed):
218 if inner_seed.name not in all_seeds:214 if inner_seed.name not in all_seeds:
219 all_seeds[inner_seed.name] = inner_seed215 all_seeds[inner_seed.name] = inner_seed
220 for seed in all_seeds.values():216 for seed in list(all_seeds.values()):
221 sources = seed._sourcepkgs | seed._build_sourcepkgs217 sources = seed._sourcepkgs | seed._build_sourcepkgs
222 for source in sources:218 for source in sources:
223 version = germinator._sources[source]["Version"]219 version = germinator._sources[source]["Version"]
@@ -275,7 +271,7 @@
275 for source in germinator._sources:271 for source in germinator._sources:
276 self._versions[source] = germinator._sources[source]["Version"]272 self._versions[source] = germinator._sources[source]["Version"]
277 else:273 else:
278 for flavour, seed_names in flavours.items():274 for flavour, seed_names in list(flavours.items()):
279 logging.info("Germinating for %s/%s/%s", flavour, suite, arch)275 logging.info("Germinating for %s/%s/%s", flavour, suite, arch)
280 self.germinateArchFlavour(276 self.germinateArchFlavour(
281 germinator, suite, arch, flavour, structures[flavour],277 germinator, suite, arch, flavour, structures[flavour],
282278
=== modified file 'get-distro-update-metrics'
--- get-distro-update-metrics 2020-01-25 02:19:13 +0000
+++ get-distro-update-metrics 2020-11-02 20:20:51 +0000
@@ -1,4 +1,4 @@
1#! /usr/bin/python2.71#! /usr/bin/python3
2# Copyright 2012 Canonical Ltd.2# Copyright 2012 Canonical Ltd.
3#3#
4# This script will write update metrics for a given Ubuntu release in CSV4# This script will write update metrics for a given Ubuntu release in CSV
@@ -25,7 +25,7 @@
25 [key, {'Updates': X, 'Security': X, 'Total': X}] record.25 [key, {'Updates': X, 'Security': X, 'Total': X}] record.
26 """26 """
27 logging.info('Writing metrics by %s to %s', key_name.lower(), filename)27 logging.info('Writing metrics by %s to %s', key_name.lower(), filename)
28 writer = csv.writer(open(filename, 'wb'))28 writer = csv.writer(open(filename, 'w'))
29 writer.writerow([key_name, 'Updates', 'Security', 'Total'])29 writer.writerow([key_name, 'Updates', 'Security', 'Total'])
30 for key, metrics in metrics:30 for key, metrics in metrics:
31 writer.writerow(31 writer.writerow(
@@ -105,7 +105,7 @@
105 options.distribution, args[0])105 options.distribution, args[0])
106 write_metrics_csv(106 write_metrics_csv(
107 by_package_filename, 'Package', sorted(107 by_package_filename, 'Package', sorted(
108 updates_by_package.items(),108 list(updates_by_package.items()),
109 key=lambda m: m[1]['Total'], reverse=True))109 key=lambda m: m[1]['Total'], reverse=True))
110110
111111
112112
=== modified file 'import-blacklist'
--- import-blacklist 2020-01-25 02:19:13 +0000
+++ import-blacklist 2020-11-02 20:20:51 +0000
@@ -1,4 +1,4 @@
1#!/usr/bin/python2.71#!/usr/bin/python3
22
3# Copyright (C) 2011 Iain Lane3# Copyright (C) 2011 Iain Lane
4# Copyright (C) 2011 Stefano Rivera4# Copyright (C) 2011 Stefano Rivera
@@ -15,8 +15,6 @@
15# You should have received a copy of the GNU General Public License15# You should have received a copy of the GNU General Public License
16# along with this program. If not, see <http://www.gnu.org/licenses/>.16# along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
18from __future__ import print_function, unicode_literals
19
20from optparse import OptionParser18from optparse import OptionParser
21import re19import re
2220
2321
=== modified file 'iso-deb-size-compare'
--- iso-deb-size-compare 2020-01-25 02:19:13 +0000
+++ iso-deb-size-compare 2020-11-02 20:20:51 +0000
@@ -1,4 +1,4 @@
1#!/usr/bin/python2.71#!/usr/bin/python3
2# -*- coding: utf-8 -*-2# -*- coding: utf-8 -*-
33
4# Copyright (C) 2010, 2012 Canonical Ltd.4# Copyright (C) 2010, 2012 Canonical Ltd.
@@ -21,8 +21,6 @@
21# two releases or daily builds. Note that this only really works for21# two releases or daily builds. Note that this only really works for
22# alternates, since desktop CDs by and large just have one big squashfs image.22# alternates, since desktop CDs by and large just have one big squashfs image.
2323
24from __future__ import print_function
25
26import subprocess24import subprocess
27import sys25import sys
2826
@@ -62,7 +60,7 @@
6260
63print('== Removed packages ==')61print('== Removed packages ==')
64sum = 062sum = 0
65for p, (v, s) in old_map.iteritems():63for p, (v, s) in old_map.items():
66 if p not in new_map:64 if p not in new_map:
67 print('%s (%.1f MB)' % (p, s / 1000000.))65 print('%s (%.1f MB)' % (p, s / 1000000.))
68 sum += s66 sum += s
@@ -70,7 +68,7 @@
7068
71sum = 069sum = 0
72print('\n== Added packages ==')70print('\n== Added packages ==')
73for p, (v, s) in new_map.iteritems():71for p, (v, s) in new_map.items():
74 if p not in old_map:72 if p not in old_map:
75 print('%s (%.1f MB)' % (p, s / 1000000.))73 print('%s (%.1f MB)' % (p, s / 1000000.))
76 sum += s74 sum += s
@@ -78,7 +76,7 @@
7876
79print('\n== Changed packages ==')77print('\n== Changed packages ==')
80sum = 078sum = 0
81for p, (v, s) in old_map.iteritems():79for p, (v, s) in old_map.items():
82 if p not in new_map:80 if p not in new_map:
83 continue81 continue
8482
8583
=== modified file 'kernel-overrides'
--- kernel-overrides 2020-01-25 02:19:13 +0000
+++ kernel-overrides 2020-11-02 20:20:51 +0000
@@ -1,4 +1,4 @@
1#! /usr/bin/python2.71#! /usr/bin/python3
22
3# Copyright (C) 2009, 2010, 2011, 2012 Canonical Ltd.3# Copyright (C) 2009, 2010, 2011, 2012 Canonical Ltd.
44
@@ -16,8 +16,6 @@
1616
17"""Apply suitable overrides to new kernel binaries, matching previous ones."""17"""Apply suitable overrides to new kernel binaries, matching previous ones."""
1818
19from __future__ import print_function
20
21import atexit19import atexit
22from collections import defaultdict20from collections import defaultdict
23from contextlib import closing21from contextlib import closing
@@ -27,10 +25,8 @@
27import shutil25import shutil
28import sys26import sys
29import tempfile27import tempfile
30try:28
31 from urllib.request import urlopen29from urllib.request import urlopen
32except ImportError:
33 from urllib2 import urlopen
3430
35import apt_pkg31import apt_pkg
36from launchpadlib.launchpad import Launchpad32from launchpadlib.launchpad import Launchpad
@@ -175,7 +171,7 @@
175 if binary["architecture"] not in current_binaries:171 if binary["architecture"] not in current_binaries:
176 continue172 continue
177 current_binaries_arch = current_binaries[binary["architecture"]]173 current_binaries_arch = current_binaries[binary["architecture"]]
178 for name, component in current_binaries_arch.items():174 for name, component in list(current_binaries_arch.items()):
179 if (binary["component"] != component and175 if (binary["component"] != component and
180 equal_except_abi(name, binary["name"], newabi)):176 equal_except_abi(name, binary["name"], newabi)):
181 print("\t%s: %s -> %s" %177 print("\t%s: %s -> %s" %
182178
=== modified file 'kernel_series.py'
--- kernel_series.py 2020-01-25 02:19:13 +0000
+++ kernel_series.py 2020-11-02 20:20:51 +0000
@@ -1,10 +1,7 @@
1#!/usr/bin/env python2.71#!/usr/bin/python3
2#2#
33
4try:4from urllib.request import urlopen
5 from urllib.request import urlopen
6except ImportError:
7 from urllib2 import urlopen
85
9import os6import os
10import yaml7import yaml
@@ -50,7 +47,7 @@
50 return not self.__eq__(other)47 return not self.__eq__(other)
5148
52 def __iter__(self):49 def __iter__(self):
53 return iter(self._data.items())50 return iter(list(self._data.items()))
5451
55 def __getitem__(self, which):52 def __getitem__(self, which):
56 return self._data[which]53 return self._data[which]
@@ -323,7 +320,7 @@
323 result = []320 result = []
324 packages = self._data.get('packages')321 packages = self._data.get('packages')
325 if packages:322 if packages:
326 for package_key, package in packages.items():323 for package_key, package in list(packages.items()):
327 result.append(KernelPackageEntry(self._ks, self, package_key, package))324 result.append(KernelPackageEntry(self._ks, self, package_key, package))
328 return result325 return result
329326
@@ -339,7 +336,7 @@
339 result = []336 result = []
340 snaps = self._data.get('snaps')337 snaps = self._data.get('snaps')
341 if snaps:338 if snaps:
342 for snap_key, snap in snaps.items():339 for snap_key, snap in list(snaps.items()):
343 result.append(KernelSnapEntry(self._ks, self, snap_key, snap))340 result.append(KernelSnapEntry(self._ks, self, snap_key, snap))
344 return result341 return result
345342
@@ -524,7 +521,7 @@
524 result = []521 result = []
525 sources = self._data.get('sources')522 sources = self._data.get('sources')
526 if sources:523 if sources:
527 for source_key, source in sources.items():524 for source_key, source in list(sources.items()):
528 result.append(KernelSourceEntry(525 result.append(KernelSourceEntry(
529 self._ks, self, source_key, source))526 self._ks, self, source_key, source))
530 return result527 return result
@@ -574,7 +571,7 @@
574571
575 self._development_series = None572 self._development_series = None
576 self._codename_to_series = {}573 self._codename_to_series = {}
577 for series_key, series in self._data.items():574 for series_key, series in list(self._data.items()):
578 if not series:575 if not series:
579 continue576 continue
580 if series.get('development', False):577 if series.get('development', False):
@@ -596,7 +593,7 @@
596 def series(self):593 def series(self):
597 return [KernelSeriesEntry(self, series_key, series,594 return [KernelSeriesEntry(self, series_key, series,
598 defaults=self._defaults_series)595 defaults=self._defaults_series)
599 for series_key, series in self._data.items()]596 for series_key, series in list(self._data.items())]
600597
601 def lookup_series(self, series=None, codename=None, development=False):598 def lookup_series(self, series=None, codename=None, development=False):
602 if not series and not codename and not development:599 if not series and not codename and not development:
603600
=== modified file 'list-builds-on-tracker'
--- list-builds-on-tracker 2020-01-25 02:19:13 +0000
+++ list-builds-on-tracker 2020-11-02 20:20:51 +0000
@@ -1,4 +1,4 @@
1#!/usr/bin/python2.71#!/usr/bin/python3
2# Copyright (C) 2012 Canonical Ltd.2# Copyright (C) 2012 Canonical Ltd.
33
4# This program is free software: you can redistribute it and/or modify4# This program is free software: you can redistribute it and/or modify
55
=== modified file 'nbs-report'
--- nbs-report 2020-10-23 15:03:51 +0000
+++ nbs-report 2020-11-02 20:20:51 +0000
@@ -1,4 +1,4 @@
1#!/usr/bin/python2.71#!/usr/bin/python3
22
3# Copyright (C) 2011, 2012 Canonical Ltd.3# Copyright (C) 2011, 2012 Canonical Ltd.
4# Author: Martin Pitt <martin.pitt@ubuntu.com>4# Author: Martin Pitt <martin.pitt@ubuntu.com>
@@ -19,8 +19,6 @@
19# Generate a HTML report of current NBS binary packages from a checkrdepends19# Generate a HTML report of current NBS binary packages from a checkrdepends
20# output directory20# output directory
2121
22from __future__ import print_function
23
24from collections import defaultdict22from collections import defaultdict
25import csv23import csv
26from optparse import OptionParser24from optparse import OptionParser
2725
=== modified file 'orphaned-sources'
--- orphaned-sources 2020-01-25 02:19:13 +0000
+++ orphaned-sources 2020-11-02 20:20:51 +0000
@@ -1,6 +1,4 @@
1#! /usr/bin/python2.71#! /usr/bin/python3
2
3from __future__ import print_function
42
5import atexit3import atexit
6from contextlib import closing4from contextlib import closing
@@ -9,10 +7,8 @@
9import shutil7import shutil
10import sys8import sys
11import tempfile9import tempfile
12try:10
13 from urllib.request import urlretrieve11from urllib.request import urlretrieve
14except ImportError:
15 from urllib import urlretrieve
1612
17import apt_pkg13import apt_pkg
18from launchpadlib.launchpad import Launchpad14from launchpadlib.launchpad import Launchpad
1915
=== modified file 'package-subscribers'
--- package-subscribers 2020-07-23 08:22:44 +0000
+++ package-subscribers 2020-11-02 20:20:51 +0000
@@ -1,6 +1,4 @@
1#! /usr/bin/python2.71#! /usr/bin/python3
2
3from __future__ import print_function
42
5import atexit3import atexit
6import bz24import bz2
75
=== modified file 'packageset-report'
--- packageset-report 2020-01-25 02:19:13 +0000
+++ packageset-report 2020-11-02 20:20:51 +0000
@@ -1,4 +1,4 @@
1#!/usr/bin/python2.71#!/usr/bin/python3
2# -*- coding: utf-8 -*-2# -*- coding: utf-8 -*-
33
4# Copyright (C) 2013 Canonical Ltd.4# Copyright (C) 2013 Canonical Ltd.
55
=== modified file 'pocket-mismatches'
--- pocket-mismatches 2020-01-25 02:19:13 +0000
+++ pocket-mismatches 2020-11-02 20:20:51 +0000
@@ -1,4 +1,4 @@
1#!/usr/bin/env python2.71#!/usr/bin/python3
22
3# Check for override mismatches between pockets3# Check for override mismatches between pockets
4# Copyright (C) 2005, 2008, 2011, 2012 Canonical Ltd.4# Copyright (C) 2005, 2008, 2011, 2012 Canonical Ltd.
@@ -18,8 +18,6 @@
18# along with this program; if not, write to the Free Software18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA19# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2020
21from __future__ import print_function
22
23import atexit21import atexit
24from collections import defaultdict22from collections import defaultdict
25import gzip23import gzip
2624
=== modified file 'point-release-snapshot'
--- point-release-snapshot 2020-01-25 02:19:13 +0000
+++ point-release-snapshot 2020-11-02 20:20:51 +0000
@@ -1,6 +1,4 @@
1#! /usr/bin/env python2.71#! /usr/bin/python3
2
3from __future__ import print_function
42
5from optparse import OptionParser3from optparse import OptionParser
6import os4import os
75
=== modified file 'post-amis-to-iso-tracker'
--- post-amis-to-iso-tracker 2020-01-25 02:19:13 +0000
+++ post-amis-to-iso-tracker 2020-11-02 20:20:51 +0000
@@ -1,4 +1,4 @@
1#! /usr/bin/python2.71#! /usr/bin/python3
22
3# Copyright (C) 2010, 2011, 2012 Canonical Ltd.3# Copyright (C) 2010, 2011, 2012 Canonical Ltd.
44
@@ -14,8 +14,6 @@
14# You should have received a copy of the GNU General Public License14# You should have received a copy of the GNU General Public License
15# along with this program. If not, see <http://www.gnu.org/licenses/>.15# along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
17from __future__ import print_function
18
19import argparse17import argparse
20import os18import os
21import sys19import sys
2220
=== modified file 'post-image-to-iso-tracker'
--- post-image-to-iso-tracker 2020-01-25 02:19:13 +0000
+++ post-image-to-iso-tracker 2020-11-02 20:20:51 +0000
@@ -1,4 +1,4 @@
1#!/usr/bin/python2.71#!/usr/bin/python3
22
3# Copyright (C) 2011 Canonical Ltd.3# Copyright (C) 2011 Canonical Ltd.
4# Author: Colin Watson <cjwatson@ubuntu.com>4# Author: Colin Watson <cjwatson@ubuntu.com>
55
=== modified file 'priority-mismatches'
--- priority-mismatches 2020-01-25 02:19:13 +0000
+++ priority-mismatches 2020-11-02 20:20:51 +0000
@@ -1,4 +1,4 @@
1#!/usr/bin/env python2.71#!/usr/bin/python3
22
3# Synchronise package priorities with germinate output3# Synchronise package priorities with germinate output
4# Copyright (C) 2005, 2009, 2010, 2011, 2012 Canonical Ltd.4# Copyright (C) 2005, 2009, 2010, 2011, 2012 Canonical Ltd.
@@ -25,8 +25,6 @@
25# i386, ia64, m68k, mips, mipsel, powerpc, s390, sparc25# i386, ia64, m68k, mips, mipsel, powerpc, s390, sparc
26# <elmo> I hid it in the pool, being the cunning cabalist that I am26# <elmo> I hid it in the pool, being the cunning cabalist that I am
2727
28from __future__ import print_function
29
30import atexit28import atexit
31from collections import defaultdict29from collections import defaultdict
32import csv30import csv
@@ -144,7 +142,7 @@
144 important_pkgs = [142 important_pkgs = [
145 pkg for pkg in important_pkgs if not re_not_base.match(pkg)]143 pkg for pkg in important_pkgs if not re_not_base.match(pkg)]
146 if standard_seed is not None:144 if standard_seed is not None:
147 standard_pkgs = read_germinate(suite, arch, standard_seed).keys()145 standard_pkgs = list(read_germinate(suite, arch, standard_seed).keys())
148 required_pkgs.sort()146 required_pkgs.sort()
149 important_pkgs.sort()147 important_pkgs.sort()
150 standard_pkgs.sort()148 standard_pkgs.sort()
151149
=== modified file 'promote-to-release'
--- promote-to-release 2020-01-25 02:19:13 +0000
+++ promote-to-release 2020-11-02 20:20:51 +0000
@@ -1,4 +1,4 @@
1#! /usr/bin/python2.71#! /usr/bin/python3
22
3# Copyright (C) 2012 Canonical Ltd.3# Copyright (C) 2012 Canonical Ltd.
4# Author: Colin Watson <cjwatson@ubuntu.com>4# Author: Colin Watson <cjwatson@ubuntu.com>
@@ -17,8 +17,6 @@
1717
18"""Promote packages to release pocket based on britney output."""18"""Promote packages to release pocket based on britney output."""
1919
20from __future__ import print_function
21
22from optparse import OptionParser20from optparse import OptionParser
23import sys21import sys
2422
2523
=== modified file 'publish-image-set'
--- publish-image-set 2020-10-21 12:47:17 +0000
+++ publish-image-set 2020-11-02 20:20:51 +0000
@@ -1,4 +1,4 @@
1#!/usr/bin/python2.71#!/usr/bin/python3
2# -*- coding: utf-8 -*-2# -*- coding: utf-8 -*-
33
4# Copyright (C) 2010, 2011, 2012 Canonical Ltd.4# Copyright (C) 2010, 2011, 2012 Canonical Ltd.
@@ -32,8 +32,6 @@
32# <releaseflag>: yes/no/poolonly/named (should appear on releases.u.c.?)32# <releaseflag>: yes/no/poolonly/named (should appear on releases.u.c.?)
33# <name>: name of the release (alpha-2, beta, etc.)33# <name>: name of the release (alpha-2, beta, etc.)
3434
35from __future__ import print_function
36
37from collections import defaultdict35from collections import defaultdict
38import optparse36import optparse
39import re37import re
@@ -183,7 +181,7 @@
183 project = 'ubuntu'181 project = 'ubuntu'
184 if 'Preinstalled' in product:182 if 'Preinstalled' in product:
185 type = 'preinstalled-%s' % type183 type = 'preinstalled-%s' % type
186 if (ms.series_string == u'Focal' and184 if (ms.series_string == 'Focal' and
187 project == 'ubuntu' and type == 'server'):185 project == 'ubuntu' and type == 'server'):
188 project = 'ubuntu-server'186 project = 'ubuntu-server'
189 type = 'legacy-server'187 type = 'legacy-server'
@@ -306,9 +304,9 @@
306304
307 print('\n## publish images:')305 print('\n## publish images:')
308 source_milestone = None306 source_milestone = None
309 for project, builds in info['build_map'].items():307 for project, builds in list(info['build_map'].items()):
310 for type, buildstamps in builds.items():308 for type, buildstamps in list(builds.items()):
311 for buildstamp, arches in buildstamps.items():309 for buildstamp, arches in list(buildstamps.items()):
312 do_publish_release(opts, project, type, buildstamp, arches,310 do_publish_release(opts, project, type, buildstamp, arches,
313 info['milestone_code'], info['stable'])311 info['milestone_code'], info['stable'])
314 source_milestone = info['milestone_code']312 source_milestone = info['milestone_code']
315313
=== modified file 'queuediff'
--- queuediff 2020-10-23 19:29:46 +0000
+++ queuediff 2020-11-02 20:20:51 +0000
@@ -1,4 +1,4 @@
1#!/usr/bin/python2.71#!/usr/bin/python3
22
3# Copyright (C) 2009, 2010, 2011, 2012 Canonical Ltd.3# Copyright (C) 2009, 2010, 2011, 2012 Canonical Ltd.
4# Copyright (C) 2010 Scott Kitterman <scott@kitterman.com>4# Copyright (C) 2010 Scott Kitterman <scott@kitterman.com>
@@ -25,17 +25,14 @@
25 queuediff -s hardy -b hal | view -25 queuediff -s hardy -b hal | view -
26'''26'''
2727
28from __future__ import print_function
29
30import gzip28import gzip
31import optparse29import optparse
32import re30import re
33import sys31import sys
34try:32
35 from urllib.parse import quote33from urllib.parse import quote
36 from urllib.request import urlopen, urlretrieve34from urllib.request import urlopen, urlretrieve
37except ImportError:35
38 from urllib import quote, urlopen, urlretrieve
39import webbrowser36import webbrowser
4037
41from launchpadlib.launchpad import Launchpad38from launchpadlib.launchpad import Launchpad
4239
=== modified file 'regression-proposed-bug-search'
--- regression-proposed-bug-search 2020-01-25 02:19:13 +0000
+++ regression-proposed-bug-search 2020-11-02 20:20:51 +0000
@@ -1,4 +1,4 @@
1#!/usr/bin/python2.71#!/usr/bin/python3
22
3# Copyright (C) 2012 Canonical, Ltd.3# Copyright (C) 2012 Canonical, Ltd.
4# Author: Brian Murray <brian@canonical.com>4# Author: Brian Murray <brian@canonical.com>
@@ -20,16 +20,11 @@
20# since the date the package was uploaded to proposed for apport and release20# since the date the package was uploaded to proposed for apport and release
21# tagged bugs that contain the version of the package from -proposed21# tagged bugs that contain the version of the package from -proposed
2222
23from __future__ import print_function
24
25import optparse23import optparse
2624
27from launchpadlib.launchpad import Launchpad25from launchpadlib.launchpad import Launchpad
2826
29try:27from urllib.request import urlopen
30 from urllib.request import urlopen
31except ImportError:
32 from urllib import urlopen
3328
3429
35def bugs_from_changes(change_url):30def bugs_from_changes(change_url):
3631
=== modified file 'rescore-ppa-builds'
--- rescore-ppa-builds 2020-01-25 02:19:13 +0000
+++ rescore-ppa-builds 2020-11-02 20:20:51 +0000
@@ -1,4 +1,4 @@
1#!/usr/bin/python2.71#!/usr/bin/python3
2# Rescore all builds in a PPA.2# Rescore all builds in a PPA.
3#3#
4# Copyright (C) 2012 Canonical Ltd.4# Copyright (C) 2012 Canonical Ltd.
@@ -16,8 +16,6 @@
16# You should have received a copy of the GNU General Public License16# You should have received a copy of the GNU General Public License
17# along with this program. If not, see <http://www.gnu.org/licenses/>.17# along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
19from __future__ import print_function
20
21from optparse import OptionParser19from optparse import OptionParser
2220
23from launchpadlib.launchpad import Launchpad21from launchpadlib.launchpad import Launchpad
2422
=== modified file 'sync-blacklist'
--- sync-blacklist 2020-01-25 02:19:13 +0000
+++ sync-blacklist 2020-11-02 20:20:51 +0000
@@ -1,4 +1,4 @@
1#!/usr/bin/python2.71#!/usr/bin/python3
22
3# Copyright (C) 2011 Iain Lane3# Copyright (C) 2011 Iain Lane
4# Copyright (C) 2011 Stefano Rivera4# Copyright (C) 2011 Stefano Rivera
@@ -15,8 +15,6 @@
15# You should have received a copy of the GNU General Public License15# You should have received a copy of the GNU General Public License
16# along with this program. If not, see <http://www.gnu.org/licenses/>.16# along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
18from __future__ import print_function, unicode_literals
19
20from optparse import OptionParser18from optparse import OptionParser
2119
22from launchpadlib.launchpad import Launchpad20from launchpadlib.launchpad import Launchpad
2321
=== modified file 'utils.py'
--- utils.py 2020-01-25 02:19:13 +0000
+++ utils.py 2020-11-02 20:20:51 +0000
@@ -1,4 +1,4 @@
1#!/usr/bin/python2.71#!/usr/bin/python3
22
3# Copyright (C) 2019 Canonical Ltd.3# Copyright (C) 2019 Canonical Ltd.
4# Author: Brian Murray <brian.murray@canonical.com>4# Author: Brian Murray <brian.murray@canonical.com>

Subscribers

People subscribed via source and target branches