From patchwork Thu Feb 1 19:20:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Mostafa X-Patchwork-Id: 868393 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3zXVLn5Mpvz9s82; Fri, 2 Feb 2018 06:20:17 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1ehKP7-0005jD-Vr; Thu, 01 Feb 2018 19:20:13 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1ehKP6-0005j3-Jo for kernel-team@lists.ubuntu.com; Thu, 01 Feb 2018 19:20:12 +0000 Received: from 1.general.kamal.us.vpn ([10.172.68.52] helo=fourier) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1ehKP6-0004JF-7c for kernel-team@lists.ubuntu.com; Thu, 01 Feb 2018 19:20:12 +0000 Received: from kamal by fourier with local (Exim 4.86_2) (envelope-from ) id 1ehKP3-00026o-S8 for kernel-team@lists.ubuntu.com; Thu, 01 Feb 2018 11:20:09 -0800 From: Kamal Mostafa To: kernel-team@lists.ubuntu.com Subject: [kteam-tools][PATCH] maint-startnewrelease: stop if DEBEMAIL is unset Date: Thu, 1 Feb 2018 11:20:09 -0800 Message-Id: <1517512809-8068-1-git-send-email-kamal@canonical.com> X-Mailer: git-send-email 2.7.4 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 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" Signed-off-by: Kamal Mostafa Acked-by: Kleber Sacilotto de Souza Acked-by: Khalid Elmously --- maintscripts/maint-startnewrelease | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/maintscripts/maint-startnewrelease b/maintscripts/maint-startnewrelease index 3d3f9b1..50ccdd8 100755 --- a/maintscripts/maint-startnewrelease +++ b/maintscripts/maint-startnewrelease @@ -57,10 +57,9 @@ if not mailenforce: mailenforce = "@canonical.com" debem = os.getenv("DEBEMAIL") -if debem is not None: - if mailenforce not in debem: - print 'DEBEMAIL does not contain', mailenforce - sys.exit(1) +if (debem is None) or (debem is not None and mailenforce not in debem): + print 'DEBEMAIL is unset, or does not contain', mailenforce + sys.exit(1) #------------------------------------------------------------------------------ # Find the abstracted debian directory and make sure it is there (IOW we are