[kernel-team] 01/01: git-format-patch-for-debian: Add support for security-tracker and CVE IDs
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Wed Dec 28 15:46:41 UTC 2016
This is an automated email from the git hooks/post-receive script.
benh pushed a commit to branch master
in repository kernel-team.
commit 10009e1bd01272fa66352f7db19075e53981129d
Author: Ben Hutchings <ben at decadent.org.uk>
Date: Wed Dec 28 15:45:13 2016 +0000
git-format-patch-for-debian: Add support for security-tracker and CVE IDs
Recognise security-tracker URLs and CVE IDs as arguments to --bug, and
use the field Bug-Debian-Security for them.
---
scripts/git-format-patch-for-debian | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/scripts/git-format-patch-for-debian b/scripts/git-format-patch-for-debian
index 547305b..97e5ae5 100755
--- a/scripts/git-format-patch-for-debian
+++ b/scripts/git-format-patch-for-debian
@@ -60,6 +60,9 @@ while [ $# -ge 1 ]; do
[0-9]*)
bug_url="https://bugs.debian.org/$2"
;;
+ CVE-*)
+ bug_url="https://security-tracker.debian.org/tracker/$2"
+ ;;
*)
echo >&2 "E: Bug '$2' not recognised as URL or number"
exit 2
@@ -94,6 +97,8 @@ FNR == 1 { hash = $2 }
for (i in bug_urls) {
if (match(bug_urls[i], "^https?://bugs\\.debian\\.org/")) {
print "Bug-Debian: " bug_urls[i]
+ } else if (match(bug_urls[i], "^https?://security-tracker\\.debian\\.org/")) {
+ print "Bug-Debian-Security: " bug_urls[i]
} else {
print "Bug: " bug_urls[i]
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/kernel-team.git
More information about the Kernel-svn-changes
mailing list