mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 15:41:09 +00:00
pbuilder-dist: Don't try to enable -updates for Debian testing
(LP: #993006)
This commit is contained in:
parent
165bb84bf5
commit
4dbde5f886
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -8,6 +8,8 @@ ubuntu-dev-tools (0.142) UNRELEASED; urgency=low
|
||||
Do enough argument parsing to handle --help (LP: #988009)
|
||||
* dgetlp: Require a UTF-8 locale, or it'll crash when displaying errors
|
||||
(LP: #979117)
|
||||
* pbuilder-dist: Don't try to enable -updates for Debian testing
|
||||
(LP: #993006)
|
||||
|
||||
-- Stefano Rivera <stefanor@debian.org> Wed, 25 Apr 2012 17:38:58 +0200
|
||||
|
||||
|
@ -266,11 +266,14 @@ class PbuilderDist:
|
||||
othermirrors = []
|
||||
if self.target_distro in self._debian_distros:
|
||||
debian_info = DebianDistroInfo()
|
||||
if (debian_info.codename(self.target_distro) or self.target_distro
|
||||
in (debian_info.devel(), 'experimental')):
|
||||
codename = debian_info.codename(self.target_distro,
|
||||
default=self.target_distro)
|
||||
if codename in (debian_info.devel(), 'experimental'):
|
||||
self.enable_security = False
|
||||
self.enable_updates = False
|
||||
self.enable_proposed = False
|
||||
elif codename == 'testing':
|
||||
self.enable_updates = False
|
||||
|
||||
if self.enable_security:
|
||||
othermirrors.append('deb %s %s/updates %s'
|
||||
|
Loading…
x
Reference in New Issue
Block a user