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 ]
* 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

View File

@ -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,6 +124,7 @@ class SourcePackage(object):
# Mirrors
self._dsc_source = dscfile
self.mirrors = list(mirrors)
if self.distribution:
self.masters = [UDTConfig.defaults['%s_MIRROR'
% self.distribution.upper()]]
if dscfile is not None: