aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2021-09-01 12:15:21 +0200
committerLars Ingebrigtsen2021-09-01 15:56:04 +0200
commitb3a9d8cd3dd8d65969d853e9e16e95bb51e61dd3 (patch)
tree337ea1bd82d07db764d12d8b7b9e0dd295e80a17
parent6a6de68dafd27238577e92a7a79e97f3f1a6e381 (diff)
downloademacs-b3a9d8cd3dd8d65969d853e9e16e95bb51e61dd3.tar.gz
emacs-b3a9d8cd3dd8d65969d853e9e16e95bb51e61dd3.zip
Don't have epg bug out on non-existent packages
* lisp/epg.el (epg--start): We may be called from contexts where the directory doesn't exist, but we need to have an existing directory here for the process (bug#32004).
-rw-r--r--lisp/epg.el21
1 files changed, 11 insertions, 10 deletions
diff --git a/lisp/epg.el b/lisp/epg.el
index 67d723b961b..a461afac34b 100644
--- a/lisp/epg.el
+++ b/lisp/epg.el
@@ -657,16 +657,17 @@ callback data (if any)."
657 :sentinel #'ignore 657 :sentinel #'ignore
658 :noquery t)) 658 :noquery t))
659 (setf (epg-context-error-buffer context) (process-buffer error-process)) 659 (setf (epg-context-error-buffer context) (process-buffer error-process))
660 (with-file-modes 448 660 (with-existing-directory
661 (setq process (make-process :name "epg" 661 (with-file-modes 448
662 :buffer buffer 662 (setq process (make-process :name "epg"
663 :command (cons (epg-context-program context) 663 :buffer buffer
664 args) 664 :command (cons (epg-context-program context)
665 :connection-type 'pipe 665 args)
666 :coding 'raw-text 666 :connection-type 'pipe
667 :filter #'epg--process-filter 667 :coding 'raw-text
668 :stderr error-process 668 :filter #'epg--process-filter
669 :noquery t))) 669 :stderr error-process
670 :noquery t))))
670 (setf (epg-context-process context) process))) 671 (setf (epg-context-process context) process)))
671 672
672(defun epg--process-filter (process input) 673(defun epg--process-filter (process input)