[kteam-tools][PATCH 1/3] verify-release-ready: verify no "Miscellaneous" changelog entries
Kamal Mostafa
kamal at canonical.com
Wed Sep 28 19:52:16 UTC 2016
Signed-off-by: Kamal Mostafa <kamal at canonical.com>
---
maintscripts/verify-release-ready | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/maintscripts/verify-release-ready b/maintscripts/verify-release-ready
index 436c192..11a142b 100755
--- a/maintscripts/verify-release-ready
+++ b/maintscripts/verify-release-ready
@@ -267,6 +267,9 @@ class VerifyReleaseReady():
s.status('unique release tracking bug', unique_tracker)
+ # Verify that the changelog entry contains no "Miscellaneous" entries
+ s.verify_changelog_nomisc()
+
# Verify the bugs in the changelog are public, targeted against linux and the
# proper series, and marked Fix Committed.
s.verify_changelog_bugs()
@@ -324,6 +327,20 @@ class VerifyReleaseReady():
else:
s.status(msg, 'warning')
+ def verify_changelog_nomisc(s):
+ # Verify that no "Miscellaneous {upstream,Ubuntu,whatever} changes"
+ # entries were inserted by debian/scripts/misc/git-ubuntu-log
+ msg = 'no "Miscellaneous" entries'
+ changelog = Debian.changelog()
+ content = changelog[1]['content']
+ for line in content:
+ m = re.match("\* Miscellaneous .* changes$", line.strip())
+ if m:
+ s.status(msg, False)
+ stdo(colored('\t\t' + line + '\n', 'red'))
+ return
+ s.status(msg, True)
+
def verify_changelog_bugs(s):
master_changelog = Debian.master_changelog()[1]
changelog_bugs = master_changelog['bugs']
--
2.7.4
More information about the kernel-team
mailing list