From 6241ba2faa817ee15df8522c0e0296a4894626b0 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 16 May 2020 17:31:29 -0400 Subject: [PATCH] Emit fetch output when updating recipe repos --- core/cli/packages.el | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/core/cli/packages.el b/core/cli/packages.el index 77e1ca362..a6c7ec4e5 100644 --- a/core/cli/packages.el +++ b/core/cli/packages.el @@ -108,16 +108,18 @@ list remains lean." (recipe package type local-repo) (let ((esc (unless doom-debug-mode "\033[1A")) (ref (straight-vc-get-commit type local-repo)) - newref) + newref output) (print! (start "\033[KUpdating recipes for %s...%s") package esc) (when (straight-vc-fetch-from-remote recipe) (setq output (straight--process-get-output)) (straight-merge-package package) - (or (equal ref (setq newref (straight-vc-get-commit type local-repo))) - (print! (success "\033[K%s updated (%s -> %s)") - package - (doom--abbrev-commit ref) - (doom--abbrev-commit newref))))))) + (unless (equal ref (setq newref (straight-vc-get-commit type local-repo))) + (print! (success "\033[K%s updated (%s -> %s)") + package + (doom--abbrev-commit ref) + (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) doom--cli-updated-recipes t)))