@@ -220,6 +220,18 @@ class Ubuntu:
for entry in self.db.values():
if version.startswith(entry['kernel']):
retval = entry['name']
+ series_version = entry['series_version']
+
+ # linux-azure is a backport that doesn't contain the 'upstream'
+ # series number on the package name, so we need to look for it
+ # first and then look for the target series.
+ if package.startswith('linux-azure'):
+ for entry in self.db.values():
+ if 'backport-packages' in entry.keys() and \
+ package in entry['backport-packages'] and \
+ entry['backport-packages'][package][0] == 'linux' and \
+ entry['backport-packages'][package][1] == series_version:
+ retval = entry['name']
return retval
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com> --- ktl/ubuntu.py | 12 ++++++++++++ 1 file changed, 12 insertions(+)