APPLIED: [kteam-tools] notify-stable-review: fix typo in ancient version detector

Kamal Mostafa kamal at canonical.com
Tue Jan 5 19:43:10 UTC 2016


This typo makes the script think "v4.2" is an ancient v2.x kernel, and
so confuses its parsing of the kernel version.

Signed-off-by: Kamal Mostafa <kamal at canonical.com>
---
 stable/notify-stable-review | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stable/notify-stable-review b/stable/notify-stable-review
index 04ebc95..f033f1e 100755
--- a/stable/notify-stable-review
+++ b/stable/notify-stable-review
@@ -418,7 +418,7 @@ see https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable .
             #else:
             #    kver[2] = str(int(kver[2])+1)
             # Get the base version
-            if kver[0] == "1" or kver[1] == "2":
+            if kver[0] == "1" or kver[0] == "2":
                 base_ver = "%s.%s.%s.y" % (kver[0], kver[1], kver[2])
                 main_ver = "%s.%s.%s" % (kver[0], kver[1], kver[2])
             else:
-- 
1.9.1





More information about the kernel-team mailing list