Query rmadison for the canonical codename of a release, not aliases like "unstable"

This commit is contained in:
Evan Broder 2011-06-19 14:46:53 -07:00
parent 78a427ad2c
commit 24452f43df

View File

@ -143,6 +143,9 @@ def parse(args):
return opts, args
def get_current_version(package, distribution, source_release):
info = vendor_to_distroinfo(distribution)
source_release = info().codename(source_release, default=source_release)
latest_version = None
for record in rmadison(distribution.lower(), package, suite=source_release):