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

Message ID 1452022990-25147-1-git-send-email-kamal@canonical.com
State New
Headers show

Commit Message

Kamal Mostafa Jan. 5, 2016, 7:43 p.m. UTC
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@canonical.com>
---
 stable/notify-stable-review | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox

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: