From patchwork Fri Aug 2 16:04:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leann Ogasawara X-Patchwork-Id: 264309 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 BFA232C008F for ; Sat, 3 Aug 2013 02:04:39 +1000 (EST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1V5Hpo-0004GT-AE; Fri, 02 Aug 2013 16:04:08 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1V5Hpj-0004D6-Ha for kernel-team@lists.ubuntu.com; Fri, 02 Aug 2013 16:04:03 +0000 Received: from faun.canonical.com ([91.189.93.182] helo=adamo) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1V5Hpj-0003Y8-GO for kernel-team@lists.ubuntu.com; Fri, 02 Aug 2013 16:04:03 +0000 Received: by adamo (Postfix, from userid 1000) id 086A120E8A; Fri, 2 Aug 2013 17:04:03 +0100 (BST) From: leann.ogasawara@canonical.com To: kernel-team@lists.ubuntu.com Subject: [Saucy][PATCH 1/1] UBUNTU: Require a tracking bug for every upload Date: Fri, 2 Aug 2013 17:04:02 +0100 Message-Id: <1375459442-16452-1-git-send-email-leann.ogasawara@canonical.com> X-Mailer: git-send-email 1.7.9.5 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 From: Leann Ogasawara During the `fdr insertchanges` step of closing a release, parse the changelog for the existence of a tracking bug. If a tracking bug doesn't exist, prevent insertion of changes. Signed-off-by: Leann Ogasawara --- debian/scripts/misc/insert-changes.pl | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/debian/scripts/misc/insert-changes.pl b/debian/scripts/misc/insert-changes.pl index c820597..90cacbc 100755 --- a/debian/scripts/misc/insert-changes.pl +++ b/debian/scripts/misc/insert-changes.pl @@ -13,6 +13,8 @@ open(CHANGES, "< $debian/changes") or die "Cannot open new changes"; open(NEW, "> $debian/changelog.new") or die "Cannot open new changelog"; $printed = 0; +$tracking_bug = 0; +$first_stanza = 1; while () { if (/^ CHANGELOG: /) { @@ -23,6 +25,12 @@ while () { } $printed = 1; + } elsif ($first_stanza && /^ \* Release Tracking Bug/) { + print NEW; + $tracking_bug = 1; + } elsif (/^ -- /) { + print NEW; + $first_stanza = 0; } else { print NEW; } @@ -32,5 +40,11 @@ close(NEW); close(CHANGES); close(CHANGELOG); -rename("$debian/changelog.new", "$debian/changelog"); +if (!$tracking_bug) { + print "ERROR: Tracking Bug Missing! (run create-release-tracker)\n"; + unlink("$debian/changelog.new"); +} else { + rename("$debian/changelog.new", "$debian/changelog"); +} + unlink("$debian/changes");