mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 15:41:09 +00:00
Merge branch 'fix-backportpackage' of git+ssh://git.launchpad.net/~ddstreet/ubuntu-dev-tools/+git/ubuntu-dev-tools
Closes: https://bugs.debian.org/983854 MR: https://code.launchpad.net/~ddstreet/ubuntu-dev-tools/+git/ubuntu-dev-tools/+merge/400848 Signed-off-by: Mattia Rizzolo <mattia@debian.org>
This commit is contained in:
commit
b687e11813
@ -30,7 +30,7 @@ from urllib.parse import quote
|
||||
import lsb_release
|
||||
from httplib2 import Http, HttpLib2Error
|
||||
|
||||
from ubuntutools.archive import (SourcePackage, DebianSourcePackage,
|
||||
from ubuntutools.archive import (DebianSourcePackage,
|
||||
UbuntuSourcePackage, DownloadError)
|
||||
from ubuntutools.config import UDTConfig, ubu_email
|
||||
from ubuntutools.builder import get_builder
|
||||
@ -201,8 +201,12 @@ def find_release_package(mirror, workdir, package, version, source_release,
|
||||
def find_package(mirror, workdir, package, version, source_release, config):
|
||||
"Returns the SourcePackage"
|
||||
if package.endswith('.dsc'):
|
||||
return SourcePackage(version=version, dscfile=package,
|
||||
workdir=workdir, mirrors=(mirror,))
|
||||
# Here we are using UbuntuSourcePackage just because we don't have any
|
||||
# "general" class that is safely instantiable (as SourcePackage is an
|
||||
# abstract class). None of the distribution-specific details within
|
||||
# UbuntuSourcePackage is relevant for this use case.
|
||||
return UbuntuSourcePackage(version=version, dscfile=package,
|
||||
workdir=workdir, mirrors=(mirror,))
|
||||
|
||||
if not source_release and not version:
|
||||
info = vendor_to_distroinfo(system_distribution())
|
||||
|
Loading…
x
Reference in New Issue
Block a user