[Git][security-tracker-team/security-tracker][master] cvelist.el: New defun to add a <postponed> tag
Moritz Muehlenhoff (@jmm)
jmm at debian.org
Tue Jul 6 11:25:25 BST 2021
Moritz Muehlenhoff pushed to branch master at Debian Security Tracker / security-tracker
Commits:
cf585bae by Moritz Muehlenhoff at 2021-07-06T12:25:18+02:00
cvelist.el: New defun to add a <postponed> tag
- - - - -
1 changed file:
- conf/cvelist.el
Changes:
=====================================
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'.")
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/cf585bae0aab1d7de5de8c3a7da471bddc082542
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/cf585bae0aab1d7de5de8c3a7da471bddc082542
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/20210706/bfa9d59e/attachment-0001.htm>
More information about the debian-security-tracker-commits
mailing list