mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-18 16:06:56 -05:00
Emit fetch output when updating recipe repos
This commit is contained in:
@@ -108,16 +108,18 @@ list remains lean."
|
|||||||
(recipe package type local-repo)
|
(recipe package type local-repo)
|
||||||
(let ((esc (unless doom-debug-mode "\033[1A"))
|
(let ((esc (unless doom-debug-mode "\033[1A"))
|
||||||
(ref (straight-vc-get-commit type local-repo))
|
(ref (straight-vc-get-commit type local-repo))
|
||||||
newref)
|
newref output)
|
||||||
(print! (start "\033[KUpdating recipes for %s...%s") package esc)
|
(print! (start "\033[KUpdating recipes for %s...%s") package esc)
|
||||||
(when (straight-vc-fetch-from-remote recipe)
|
(when (straight-vc-fetch-from-remote recipe)
|
||||||
(setq output (straight--process-get-output))
|
(setq output (straight--process-get-output))
|
||||||
(straight-merge-package package)
|
(straight-merge-package package)
|
||||||
(or (equal ref (setq newref (straight-vc-get-commit type local-repo)))
|
(unless (equal ref (setq newref (straight-vc-get-commit type local-repo)))
|
||||||
(print! (success "\033[K%s updated (%s -> %s)")
|
(print! (success "\033[K%s updated (%s -> %s)")
|
||||||
package
|
package
|
||||||
(doom--abbrev-commit ref)
|
(doom--abbrev-commit ref)
|
||||||
(doom--abbrev-commit newref)))))))
|
(doom--abbrev-commit newref))
|
||||||
|
(unless (string-empty-p output)
|
||||||
|
(print-group! (print! (info "%s" output)))))))))
|
||||||
(setq straight--recipe-lookup-cache (make-hash-table :test #'eq)
|
(setq straight--recipe-lookup-cache (make-hash-table :test #'eq)
|
||||||
doom--cli-updated-recipes t)))
|
doom--cli-updated-recipes t)))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user