Skip to content

Commit

Permalink
try use find file
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Dec 29, 2023
1 parent 5392434 commit a666317
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lisp/_prepare.el
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,11 @@ ELPA)."
(eask-with-verbosity 'debug
(eask-with-progress
(ansi-blue (format "Generating recipe for package %s... " (ansi-yellow pkg)))
(write-region (pp-to-string recipe) nil (expand-file-name pkg github-elpa-recipes-dir))
(progn
(ignore-errors (make-directory github-elpa-recipes-dir t))
(with-current-buffer (find-file (expand-file-name pkg github-elpa-recipes-dir))
(insert (pp-to-string recipe))
(save-buffer)))
(ansi-blue "done ✓")))
(setq eask-depends-on-recipe-p t))
recipe))))
Expand Down

0 comments on commit a666317

Please sign in to comment.