From 85ed9ad1ce54a6ae99741da302f0670bcb55bfd9 Mon Sep 17 00:00:00 2001 From: Dan Streetman Date: Thu, 8 Apr 2021 22:52:20 -0400 Subject: [PATCH] backportpackage: don't use SourcePackage() directly As the warning from 2010 says, don't use this class directly. --- backportpackage | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backportpackage b/backportpackage index 3856e82..a832dfb 100755 --- a/backportpackage +++ b/backportpackage @@ -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,8 @@ 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,)) + return UbuntuSourcePackage(version=version, dscfile=package, + workdir=workdir, mirrors=(mirror,)) if not source_release and not version: info = vendor_to_distroinfo(system_distribution())