mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
DebianSourcePackage.lp_spph is annoyingly overloaded; just do the check directly
This commit is contained in:
parent
5eb960dd3f
commit
f91f61f8d4
@ -322,7 +322,10 @@ def copy(src_pkg, debian_dist, release, simulate=False, force=False):
|
||||
|
||||
# Ensure that the provided Debian version actually exists.
|
||||
try:
|
||||
debian_spph = src_pkg.lp_spph()
|
||||
debian_spph = debian_archive.getPublishedSources(
|
||||
source_name=src_pkg.source,
|
||||
version=src_pkg.version.full_version,
|
||||
exact_match=True)[0]
|
||||
except IndexError:
|
||||
Logger.error('Debian version %s does not exist!', src_pkg.version)
|
||||
sys.exit(1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user