[Saucy][PATCH 1/1] UBUNTU: Require a tracking bug for every upload
leann.ogasawara at canonical.com
leann.ogasawara at canonical.com
Fri Aug 2 16:04:02 UTC 2013
From: Leann Ogasawara <leann.ogasawara at canonical.com>
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 <leann.ogasawara at canonical.com>
---
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 (<CHANGELOG>) {
if (/^ CHANGELOG: /) {
@@ -23,6 +25,12 @@ while (<CHANGELOG>) {
}
$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");
--
1.7.9.5
More information about the kernel-team
mailing list