discussion and development of piem
 help / color / mirror / code / Atom feed
* [PATCH] b4: Remove temporary directory on "missing mbox" error
@ 2020-10-25 19:21 Kyle Meyer
  0 siblings, 0 replies; only message in thread
From: Kyle Meyer @ 2020-10-25 19:21 UTC (permalink / raw)
  To: piem

As of 30defdb (b4: Clean up temporary directories by default,
2020-09-27), piem-b4-am-from-mid is supposed to clean up its temporary
directory unless piem-b4-keep-temp-directory is non-nil.  That commit,
however, missed an error case where the cleanup function needs to be
 piem-b4.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/piem-b4.el b/piem-b4.el
index 31bf6f1..27ecf19 100644
--- a/piem-b4.el
+++ b/piem-b4.el
@@ -101,6 +101,8 @@ (defun piem-b4--get-am-files (mid coderepo args)
             (if (file-exists-p mbox-am)
+              (when clean-fn
+                (funcall clean-fn))
               (error "Expected mbox file does not exist: %s" mbox-am))

base-commit: 442472a37da221c7c5f961870a2b6b53b1c18e81

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-25 19:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-25 19:21 [PATCH] b4: Remove temporary directory on "missing mbox" error Kyle Meyer

discussion and development of piem

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.kyleam.com/piem/0 piem/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 piem piem/ https://inbox.kyleam.com/piem \
	public-inbox-index piem

Example config snippet for mirrors.
Newsgroup available over NNTP:

code repositories for project(s) associated with this inbox:


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git