Merge branch 'fix-pull-pkg' of git+ssh://git.launchpad.net/~xnox/ubuntu-dev-tools

MR: https://code.launchpad.net/~xnox/ubuntu-dev-tools/+git/ubuntu-dev-tools/+merge/396459
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
This commit is contained in:
Mattia Rizzolo 2021-01-19 23:31:03 +01:00
commit f8c0d87b6f
No known key found for this signature in database
GPG Key ID: 0816B9E18C762BAD
4 changed files with 17 additions and 3 deletions

8
debian/changelog vendored
View File

@ -19,6 +19,14 @@ ubuntu-dev-tools (0.178) UNRELEASED; urgency=medium
+ Limit bug description length to 50k chars to support Launchpad's limits. + Limit bug description length to 50k chars to support Launchpad's limits.
LP: #1193941 LP: #1193941
[ Dimitri John Ledkov ]
* pullpkg.py: fix --mirror option parsing.
* config.py: add UBUNTU_INTERNAL_MIRROR option, for launchpad internal
mirror.
* archive.py: use Regular, Ports, and Internal mirrors by default. Thus
enabling pull-lp-debs to work with ports architectures, and inside
launchpad builds too.
-- Mattia Rizzolo <mattia@debian.org> Tue, 22 Dec 2020 17:50:52 +0100 -- Mattia Rizzolo <mattia@debian.org> Tue, 22 Dec 2020 17:50:52 +0100
ubuntu-dev-tools (0.177) unstable; urgency=medium ubuntu-dev-tools (0.177) unstable; urgency=medium

View File

@ -161,8 +161,13 @@ class SourcePackage(object):
# Mirrors # Mirrors
self.mirrors = list(mirrors) self.mirrors = list(mirrors)
if self.distribution: if self.distribution:
self.masters = [UDTConfig.defaults['%s_MIRROR' masters = []
% self.distribution.upper()]] for suffix in ["MIRROR", "PORTS_MIRROR", "INTERNAL_MIRROR"]:
masters.append(
UDTConfig.defaults.get('%s_%s' %
(self.distribution.upper(),
suffix)))
self.masters = filter(None, masters)
# if a dsc was specified, pull it to get the source/version info # if a dsc was specified, pull it to get the source/version info
if self._dsc_source: if self._dsc_source:

View File

@ -43,6 +43,7 @@ class UDTConfig(object):
'MIRROR_FALLBACK': True, 'MIRROR_FALLBACK': True,
'UBUNTU_MIRROR': 'http://archive.ubuntu.com/ubuntu', 'UBUNTU_MIRROR': 'http://archive.ubuntu.com/ubuntu',
'UBUNTU_PORTS_MIRROR': 'http://ports.ubuntu.com', 'UBUNTU_PORTS_MIRROR': 'http://ports.ubuntu.com',
'UBUNTU_INTERNAL_MIRROR': 'http://ftpmaster.internal/ubuntu',
'UBUNTU_DDEBS_MIRROR': 'http://ddebs.ubuntu.com', 'UBUNTU_DDEBS_MIRROR': 'http://ddebs.ubuntu.com',
'UPDATE_BUILDER': False, 'UPDATE_BUILDER': False,
'WORKDIR': None, 'WORKDIR': None,

View File

@ -344,7 +344,7 @@ class PullPkg(object):
mirrors = [] mirrors = []
if options['mirror']: if options['mirror']:
mirrors.append(options['mirror']) mirrors.extend(options['mirror'])
if pull == PULL_DDEBS: if pull == PULL_DDEBS:
config = UDTConfig(options['no_conf']) config = UDTConfig(options['no_conf'])
ddebs_mirror = config.get_value(distro.upper() + '_DDEBS_MIRROR') ddebs_mirror = config.get_value(distro.upper() + '_DDEBS_MIRROR')