diff options
author | Moritz Muehlenhoff <jmm@debian.org> | 2021-03-05 11:18:23 +0100 |
---|---|---|
committer | Moritz Muehlenhoff <jmm@debian.org> | 2021-03-05 11:18:23 +0100 |
commit | b63d0f7eeb895278dec3ff79a115a7f6151f05aa (patch) | |
tree | fff49b7f12abef38c1a6ee8013a4fd36175b08b9 /conf | |
parent | 3866ec71701037fb8f6be7d41d61289412251e72 (diff) |
cvelist.el: New function to insert no-dsa comment based on the current source entry.
Diffstat (limited to 'conf')
-rw-r--r-- | conf/cvelist.el | 11 |
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'.") |