From patchwork Fri Jan 8 21:56:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Mostafa X-Patchwork-Id: 565078 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 25A30140B9A; Sat, 9 Jan 2016 08:56:29 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1aHf1D-00066s-OG; Fri, 08 Jan 2016 21:56:23 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1aHf18-00066J-V2 for kernel-team@lists.ubuntu.com; Fri, 08 Jan 2016 21:56:18 +0000 Received: from 1.general.kamal.us.vpn ([10.172.68.52] helo=fourier) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1aHf18-0006HU-IO; Fri, 08 Jan 2016 21:56:18 +0000 Received: from kamal by fourier with local (Exim 4.82) (envelope-from ) id 1aHf15-0008NY-Jm; Fri, 08 Jan 2016 13:56:15 -0800 From: Kamal Mostafa To: kernel-team@lists.ubuntu.com Subject: APPLIED: [kteam-tools] notify-stable-release: fix typo in ancient version detector Date: Fri, 8 Jan 2016 13:56:09 -0800 Message-Id: <1452290169-32174-1-git-send-email-kamal@canonical.com> X-Mailer: git-send-email 1.9.1 Cc: Kamal Mostafa X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: kernel-team-bounces@lists.ubuntu.com 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 --- stable/notify-stable-release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)