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

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

Commit Message

Kamal Mostafa Jan. 8, 2016, 9:56 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-release | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox

diff --git a/stable/notify-stable-release b/stable/notify-stable-release
index f5620e8..c8d10fa 100755
--- a/stable/notify-stable-release
+++ b/stable/notify-stable-release
@@ -133,7 +133,7 @@  for line in open("Makefile", "r").readlines():
     if line.startswith("EXTRAVERSION"):
         v4 = line.split()[-1]
         break
-if v1 == "1" or v2 == "2":
+if v1 == "1" or v1 == "2":
     basever = "%s.%s.%s" % (v1, v2, v3)
 else:
     basever = "%s.%s"  % (v1, v2)