summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoritz Muehlenhoff <jmm@debian.org>2021-03-05 11:18:23 +0100
committerMoritz Muehlenhoff <jmm@debian.org>2021-03-05 11:18:23 +0100
commitae6f4c1bc9d1eaa4da4602498cdcf7839a7f591e (patch)
treea00b137b1d146bbbbbd6e6a7cc23cb278a7bbb5c
parent84d5ee54fc292ae4c7501be9c3e20b3444605a1e (diff)
cvelist.el: New function to insert no-dsa comment based on the current source entry.
-rw-r--r--conf/cvelist.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/conf/cvelist.el b/conf/cvelist.el
index dcca731fbb..2c89c11ce5 100644
--- a/conf/cvelist.el
+++ b/conf/cvelist.el
@@ -25,6 +25,16 @@
(interactive)
(insert "\tNOTE: "))
+; TODO: Read supported distros from central config and prompt for applicable suites
+(defun debian-cvelist-insert-nodsa ()
+ "Insert no-dsa comment based on the current source entry."
+ (interactive)
+ (setq reason (read-string "Reason for no-dsa: " "Minor issue"))
+ (setq srcpkg (thing-at-point 'symbol))
+ (next-line)
+ (beginning-of-line)
+ (insert (concat "\t[buster] - " srcpkg " <no-dsa> (" reason ")\n" )))
+
(defun debian-cvelist-cvesearch ()
"Look up a CVE ID at the MITRE website."
(interactive)
@@ -35,6 +45,7 @@
(define-key map (kbd "C-c C-f") 'debian-cvelist-insert-not-for-us)
(define-key map (kbd "C-c C-n") 'debian-cvelist-insert-note)
(define-key map (kbd "C-c C-c") 'debian-cvelist-cvesearch)
+ (define-key map (kbd "C-c C-l") 'debian-cvelist-insert-nodsa)
map)
"Keymap for `debian-cvelist-mode'.")

© 2014-2024 Faster IT GmbH | imprint | privacy policy