[Git][security-tracker-team/security-tracker][master] cvelist.el: New function to add source entry
Moritz Muehlenhoff
jmm at debian.org
Fri Mar 12 10:44:57 GMT 2021
Moritz Muehlenhoff pushed to branch master at Debian Security Tracker / security-tracker
Commits:
42541d04 by Moritz Muehlenhoff at 2021-03-12T11:44:33+01:00
cvelist.el: New function to add source entry
- - - - -
1 changed file:
- conf/cvelist.el
Changes:
=====================================
conf/cvelist.el
=====================================
@@ -35,6 +35,16 @@
(beginning-of-line)
(insert (concat "\t[buster] - " srcpkg " <no-dsa> (" reason ")\n" )))
+; TODO: Parse existing source entries for buffer tab completion
+(defun debian-cvelist-insert-srcentry ()
+ "Insert new source package entry."
+ (interactive)
+ (setq srcpkg (read-string "Source package: " ""))
+ (setq version (read-string "Fixed version: " "<unfixed>"))
+ (next-line)
+ (beginning-of-line)
+ (insert (concat "\t- " srcpkg " " version "\n")))
+
(defun debian-cvelist-cvesearch ()
"Look up a CVE ID at the MITRE website."
(interactive)
@@ -46,6 +56,7 @@
(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)
+ (define-key map (kbd "C-c C-a") 'debian-cvelist-insert-srcentry)
map)
"Keymap for `debian-cvelist-mode'.")
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/42541d04288a362b3b3446a399216f5d7c9babea
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/42541d04288a362b3b3446a399216f5d7c9babea
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/20210312/a325174d/attachment-0001.htm>
More information about the debian-security-tracker-commits
mailing list