[Git][security-tracker-team/security-tracker][master] cvelist.el: New function to insert no-dsa comment based on the current source entry.
Moritz Muehlenhoff
jmm at debian.org
Fri Mar 5 10:19:04 GMT 2021
Moritz Muehlenhoff pushed to branch master at Debian Security Tracker / security-tracker
Commits:
b63d0f7e by Moritz Muehlenhoff at 2021-03-05T11:18:23+01:00
cvelist.el: New function to insert no-dsa comment based on the current source entry.
- - - - -
1 changed file:
- conf/cvelist.el
Changes:
=====================================
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'.")
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/b63d0f7eeb895278dec3ff79a115a7f6151f05aa
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/b63d0f7eeb895278dec3ff79a115a7f6151f05aa
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20210305/613989e2/attachment.htm>
More information about the debian-security-tracker-commits
mailing list