backportpackage: Backport from local source packages again (LP: #801945)

This commit is contained in:
Stefano Rivera 2011-08-16 01:17:25 +02:00
parent 7acdaaf977
commit aa99618dd6
2 changed files with 5 additions and 3 deletions

1
debian/changelog vendored
View File

@ -2,6 +2,7 @@ ubuntu-dev-tools (0.128) UNRELEASED; urgency=low
[ Stefano Rivera ] [ Stefano Rivera ]
* ubuntutools.builder: Detect missing builder and fail early. * ubuntutools.builder: Detect missing builder and fail early.
* backportpackage: Backport from local source packages again (LP: #801945)
[ Julian Taylor ] [ Julian Taylor ]
* lp-shell: use ipython shell if available * lp-shell: use ipython shell if available

View File

@ -101,7 +101,7 @@ class SourcePackage(object):
Use DebianSourcePackage or UbuntuSourcePackage instead of using this Use DebianSourcePackage or UbuntuSourcePackage instead of using this
directly. directly.
""" """
distribution = 'unknown' distribution = None
def __init__(self, package=None, version=None, component=None, def __init__(self, package=None, version=None, component=None,
dscfile=None, lp=None, mirrors=(), workdir='.'): dscfile=None, lp=None, mirrors=(), workdir='.'):
@ -124,8 +124,9 @@ class SourcePackage(object):
# Mirrors # Mirrors
self._dsc_source = dscfile self._dsc_source = dscfile
self.mirrors = list(mirrors) self.mirrors = list(mirrors)
self.masters = [UDTConfig.defaults['%s_MIRROR' if self.distribution:
% self.distribution.upper()]] self.masters = [UDTConfig.defaults['%s_MIRROR'
% self.distribution.upper()]]
if dscfile is not None: if dscfile is not None:
if self.source is None: if self.source is None:
self.source = 'unknown' self.source = 'unknown'