mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
backportpackage: Backport from local source packages again (LP: #801945)
This commit is contained in:
parent
7acdaaf977
commit
aa99618dd6
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -2,6 +2,7 @@ ubuntu-dev-tools (0.128) UNRELEASED; urgency=low
|
||||
|
||||
[ Stefano Rivera ]
|
||||
* ubuntutools.builder: Detect missing builder and fail early.
|
||||
* backportpackage: Backport from local source packages again (LP: #801945)
|
||||
|
||||
[ Julian Taylor ]
|
||||
* lp-shell: use ipython shell if available
|
||||
|
@ -101,7 +101,7 @@ class SourcePackage(object):
|
||||
Use DebianSourcePackage or UbuntuSourcePackage instead of using this
|
||||
directly.
|
||||
"""
|
||||
distribution = 'unknown'
|
||||
distribution = None
|
||||
|
||||
def __init__(self, package=None, version=None, component=None,
|
||||
dscfile=None, lp=None, mirrors=(), workdir='.'):
|
||||
@ -124,8 +124,9 @@ class SourcePackage(object):
|
||||
# Mirrors
|
||||
self._dsc_source = dscfile
|
||||
self.mirrors = list(mirrors)
|
||||
self.masters = [UDTConfig.defaults['%s_MIRROR'
|
||||
% self.distribution.upper()]]
|
||||
if self.distribution:
|
||||
self.masters = [UDTConfig.defaults['%s_MIRROR'
|
||||
% self.distribution.upper()]]
|
||||
if dscfile is not None:
|
||||
if self.source is None:
|
||||
self.source = 'unknown'
|
||||
|
Loading…
x
Reference in New Issue
Block a user