mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 15:41:09 +00:00
pbuilder: handle debian change from /updates to -security
starting in bullseye, the security suite is -security instead of /updates LP: #1916633
This commit is contained in:
parent
728849964e
commit
d784fea1cd
@ -294,9 +294,14 @@ class PbuilderDist(object):
|
||||
self.enable_updates = False
|
||||
|
||||
if self.enable_security:
|
||||
othermirrors.append('deb %s %s/updates %s'
|
||||
pocket = '-security'
|
||||
with suppress(ValueError):
|
||||
# before bullseye (version 11) security suite is /updates
|
||||
if float(debian_info.version(codename)) < 11.0:
|
||||
pocket = '/updates'
|
||||
othermirrors.append('deb %s %s%s %s'
|
||||
% (config.get_value('DEBSEC_MIRROR'),
|
||||
self.target_distro, components))
|
||||
self.target_distro, pocket, components))
|
||||
if self.enable_updates:
|
||||
othermirrors.append('deb %s %s-updates %s'
|
||||
% (mirror, self.target_distro, components))
|
||||
|
Loading…
x
Reference in New Issue
Block a user