mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
Add bidirectional workarounds for LP: #599695 (pbuilder uses the host
apt keyring). Complain if the target's keyring isn't installed.
This commit is contained in:
parent
f347770b46
commit
67734216ab
4
debian/changelog
vendored
4
debian/changelog
vendored
@ -17,6 +17,8 @@ ubuntu-dev-tools (0.107) UNRELEASED; urgency=low
|
||||
- Refactor to use subprocess.popen instead of os.system (LP: #398974)
|
||||
- Catch OSErrors when creating directories (LP: #671067)
|
||||
- Set HOME so pbuilder reads .pbuilderrc
|
||||
- Add bidirectional workarounds for LP: #599695 (pbuilder uses the host
|
||||
apt keyring). Complain if the target's keyring isn't installed.
|
||||
* Use dpkg-vendor in ubuntutools.misc.system_distribution(), cache result.
|
||||
|
||||
[ Benjamin Drung ]
|
||||
@ -32,7 +34,7 @@ ubuntu-dev-tools (0.107) UNRELEASED; urgency=low
|
||||
* submittodebian: Encourage sending multiple independent pieces of the
|
||||
Ubuntu patch in separate bug reports.
|
||||
|
||||
-- Stefano Rivera <stefanor@ubuntu.com> Thu, 02 Dec 2010 09:29:56 +0200
|
||||
-- Stefano Rivera <stefanor@ubuntu.com> Thu, 02 Dec 2010 09:36:48 +0200
|
||||
|
||||
ubuntu-dev-tools (0.106) experimental; urgency=low
|
||||
|
||||
|
@ -222,11 +222,6 @@ class pbuilder_dist:
|
||||
|
||||
if self.target_distro in debian_distros:
|
||||
arguments += ['--mirror', 'http://ftp.debian.org/debian']
|
||||
# work around bug #599695
|
||||
arguments += [
|
||||
'--debootstrapopts',
|
||||
'--keyring=/usr/share/keyrings/debian-archive-keyring.gpg',
|
||||
]
|
||||
components = 'main'
|
||||
if self.extra_components:
|
||||
components += ' contrib non-free'
|
||||
@ -243,6 +238,28 @@ class pbuilder_dist:
|
||||
if self.extra_components:
|
||||
components += ' universe multiverse'
|
||||
|
||||
# Work around LP:#599695
|
||||
if (ubuntutools.misc.system_distribution() == 'Debian'
|
||||
and self.target_distro not in debian_distros):
|
||||
if not os.path.exists(
|
||||
'/usr/share/keyrings/ubuntu-archive-keyring.gpg'):
|
||||
print >> stderr, 'Error: ubuntu-keyring not installed'
|
||||
exit(1)
|
||||
arguments += [
|
||||
'--debootstrapopts',
|
||||
'--keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg',
|
||||
]
|
||||
elif (ubuntutools.misc.system_distribution() == 'Ubuntu'
|
||||
and self.target_distro in debian_distros):
|
||||
if not os.path.exists(
|
||||
'/usr/share/keyrings/debian-archive-keyring.gpg'):
|
||||
print >> stderr, 'Error: debian-archive-keyring not installed'
|
||||
exit(1)
|
||||
arguments += [
|
||||
'--debootstrapopts',
|
||||
'--keyring=/usr/share/keyrings/debian-archive-keyring.gpg',
|
||||
]
|
||||
|
||||
arguments += ['--components', components]
|
||||
|
||||
if self.build_architecture != self.system_architecture:
|
||||
|
Loading…
x
Reference in New Issue
Block a user