mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-16 09:31:08 +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
|
import lsb_release
|
||||||
from httplib2 import Http, HttpLib2Error
|
from httplib2 import Http, HttpLib2Error
|
||||||
|
|
||||||
from ubuntutools.archive import (SourcePackage, DebianSourcePackage,
|
from ubuntutools.archive import (DebianSourcePackage,
|
||||||
UbuntuSourcePackage, DownloadError)
|
UbuntuSourcePackage, DownloadError)
|
||||||
from ubuntutools.config import UDTConfig, ubu_email
|
from ubuntutools.config import UDTConfig, ubu_email
|
||||||
from ubuntutools.builder import get_builder
|
from ubuntutools.builder import get_builder
|
||||||
@ -201,7 +201,11 @@ def find_release_package(mirror, workdir, package, version, source_release,
|
|||||||
def find_package(mirror, workdir, package, version, source_release, config):
|
def find_package(mirror, workdir, package, version, source_release, config):
|
||||||
"Returns the SourcePackage"
|
"Returns the SourcePackage"
|
||||||
if package.endswith('.dsc'):
|
if package.endswith('.dsc'):
|
||||||
return SourcePackage(version=version, dscfile=package,
|
# 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,))
|
workdir=workdir, mirrors=(mirror,))
|
||||||
|
|
||||||
if not source_release and not version:
|
if not source_release and not version:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user