[kteam-tools][PATCH 2/2] ktl/ubuntu.py: fix series lookup for -azure kernels
Kleber Sacilotto de Souza
kleber.souza at canonical.com
Thu May 18 15:13:24 UTC 2017
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza at canonical.com>
---
ktl/ubuntu.py | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/ktl/ubuntu.py b/ktl/ubuntu.py
index 22276884..36845346 100644
--- a/ktl/ubuntu.py
+++ b/ktl/ubuntu.py
@@ -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
--
2.11.0
More information about the kernel-team
mailing list