mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-18 12:21:28 +00:00
Add --backports option to pbuilder-dist to make it easier to build for backports when dependencies from backports are needed
This commit is contained in:
parent
96d698e429
commit
afd95915e4
4
debian/changelog
vendored
4
debian/changelog
vendored
@ -7,6 +7,10 @@ ubuntu-dev-tools (0.162) UNRELEASED; urgency=medium
|
|||||||
[ Dimitri John Ledkov ]
|
[ Dimitri John Ledkov ]
|
||||||
* Add support for 'overlay' in favor of older 'overlayfs'.
|
* Add support for 'overlay' in favor of older 'overlayfs'.
|
||||||
|
|
||||||
|
[ Scott Kitterman ]
|
||||||
|
* Add --backports option to pbuilder-dist to make it easier to build for
|
||||||
|
backports when dependencies from backports are needed
|
||||||
|
|
||||||
-- Mattia Rizzolo <mattia@debian.org> Thu, 08 Mar 2018 12:35:24 +0100
|
-- Mattia Rizzolo <mattia@debian.org> Thu, 08 Mar 2018 12:35:24 +0100
|
||||||
|
|
||||||
ubuntu-dev-tools (0.161) unstable; urgency=medium
|
ubuntu-dev-tools (0.161) unstable; urgency=medium
|
||||||
|
@ -85,6 +85,9 @@ Suitable environment for preparing security updates.
|
|||||||
\fB\-\-updates\-only\fP
|
\fB\-\-updates\-only\fP
|
||||||
Only use the release, security, and updates pocket.
|
Only use the release, security, and updates pocket.
|
||||||
Not the proposed\-updates pocket.
|
Not the proposed\-updates pocket.
|
||||||
|
.TP
|
||||||
|
\fB\-\-backports\fP
|
||||||
|
Also use the backports archive..
|
||||||
|
|
||||||
.SH EXAMPLES
|
.SH EXAMPLES
|
||||||
.TP
|
.TP
|
||||||
|
@ -60,6 +60,7 @@ class PbuilderDist(object):
|
|||||||
self.enable_security = True
|
self.enable_security = True
|
||||||
self.enable_updates = True
|
self.enable_updates = True
|
||||||
self.enable_proposed = True
|
self.enable_proposed = True
|
||||||
|
self.enable_backports = False
|
||||||
|
|
||||||
# File where the log of the last operation will be saved.
|
# File where the log of the last operation will be saved.
|
||||||
self.logfile = None
|
self.logfile = None
|
||||||
@ -299,6 +300,9 @@ class PbuilderDist(object):
|
|||||||
if self.enable_proposed:
|
if self.enable_proposed:
|
||||||
othermirrors.append('deb %s %s-proposed-updates %s'
|
othermirrors.append('deb %s %s-proposed-updates %s'
|
||||||
% (mirror, self.target_distro, components))
|
% (mirror, self.target_distro, components))
|
||||||
|
if self.enable_backports:
|
||||||
|
othermirrors.append('deb %s %s-backports %s'
|
||||||
|
% (mirror, self.target_distro, components))
|
||||||
|
|
||||||
aptcache = os.path.join(self.base, 'aptcache', 'debian')
|
aptcache = os.path.join(self.base, 'aptcache', 'debian')
|
||||||
else:
|
else:
|
||||||
@ -475,6 +479,9 @@ def main():
|
|||||||
elif '--updates-only' in sys.argv:
|
elif '--updates-only' in sys.argv:
|
||||||
args.remove('--updates-only')
|
args.remove('--updates-only')
|
||||||
app.enable_proposed = False
|
app.enable_proposed = False
|
||||||
|
elif '--backports' in sys.argv:
|
||||||
|
args.remove('--backports')
|
||||||
|
app.enable_backports = True
|
||||||
|
|
||||||
if len(args) < 1:
|
if len(args) < 1:
|
||||||
Logger.error('Insufficient number of arguments.')
|
Logger.error('Insufficient number of arguments.')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user