DebianSourcePackage.lp_spph is annoyingly overloaded; just do the check directly

This commit is contained in:
Colin Watson 2011-08-17 12:59:54 +01:00
parent 5eb960dd3f
commit f91f61f8d4

View File

@ -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)