summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorMoritz Muehlenhoff <jmm@debian.org>2021-07-06 12:24:36 +0200
committerMoritz Muehlenhoff <jmm@debian.org>2021-07-06 12:25:18 +0200
commitcf585bae0aab1d7de5de8c3a7da471bddc082542 (patch)
tree0bc814059cefe7378448d7ea657919a15dd6fbf0 /conf
parent1caa4e3f6ba42c0d8a969f7f68b77191fb54680c (diff)
cvelist.el: New defun to add a <postponed> tag
Diffstat (limited to 'conf')
-rw-r--r--conf/cvelist.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/conf/cvelist.el b/conf/cvelist.el
index d8155789eb..94472f6c96 100644
--- a/conf/cvelist.el
+++ b/conf/cvelist.el
@@ -49,6 +49,15 @@
(beginning-of-line)
(insert (concat "\t[buster] - " srcpkg " <no-dsa> (" reason ")\n" )))
+(defun debian-cvelist-insert-postponed ()
+ "Insert postponed comment based on the current source entry."
+ (interactive)
+ (setq reason (read-string "Reason for postponed: " "Minor issue, fix along with next update"))
+ (setq srcpkg (thing-at-point 'filename))
+ (next-line)
+ (beginning-of-line)
+ (insert (concat "\t[buster] - " srcpkg " <postponed> (" reason ")\n" )))
+
; TODO: Read supported distros from central config and prompt for applicable suites
(defun debian-cvelist-insert-not-affected ()
"Insert not-affected comment based on the current source entry."
@@ -82,6 +91,7 @@
(define-key map (kbd "C-c C-l") 'debian-cvelist-insert-nodsa)
(define-key map (kbd "C-c C-a") 'debian-cvelist-insert-srcentry)
(define-key map (kbd "C-c C-x") 'debian-cvelist-insert-not-affected)
+ (define-key map (kbd "C-c C-p") 'debian-cvelist-insert-postponed)
(define-key map (kbd "C-c C-b") 'debian-cvelist-insert-bug)
map)
"Keymap for `debian-cvelist-mode'.")

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