backportpackage: Search for newer versions in -{updates,security} on Ubuntu

(LP: #823833).
This commit is contained in:
Benjamin Drung 2011-09-08 17:26:40 +02:00
parent e9efe8d0f0
commit ba6bd9186b
2 changed files with 14 additions and 7 deletions

View File

@ -150,13 +150,18 @@ def get_current_version(package, distribution, source_release):
latest_version = None
for record in rmadison(distribution.lower(), package, suite=source_release):
if 'source' not in record:
continue
releases = [source_release]
if distribution.lower() == "ubuntu":
releases += [source_release + "-updates", source_release + "-security"]
if (not latest_version or
Version(latest_version) < Version(record['version'])):
latest_version = record['version']
for release in releases:
for record in rmadison(distribution.lower(), package, suite=release):
if 'source' not in record:
continue
if (not latest_version or
Version(latest_version) < Version(record['version'])):
latest_version = record['version']
return latest_version

4
debian/changelog vendored
View File

@ -2,8 +2,10 @@ ubuntu-dev-tools (0.130) UNRELEASED; urgency=low
* pull-lp-source: Support source packages with a bad version string
(LP: #844682).
* backportpackage: Search for newer versions in -{updates,security} on Ubuntu
(LP: #823833).
-- Benjamin Drung <bdrung@debian.org> Thu, 08 Sep 2011 16:38:15 +0200
-- Benjamin Drung <bdrung@debian.org> Thu, 08 Sep 2011 17:25:21 +0200
ubuntu-dev-tools (0.129) unstable; urgency=low