From 9b771305df5dfc31c06b81fbdeaae753ba5d4afe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org>
Date: Sun, 22 Mar 2020 11:53:21 +0100
Subject: [PATCH] ui: 'build-notifier' invokes continuation when there's
 nothing to do.

* guix/ui.scm (build-notifier): Call CONTINUE when there's nothing to
build or download, even when DRY-RUN? is true.
---
 guix/ui.scm | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/guix/ui.scm b/guix/ui.scm
index 1c0dd11edca..b9ba8c0f7af 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -1078,12 +1078,15 @@ (define inputs
                      #f))
                   things))
 
-    (show-what-to-build store inputs
-                        #:dry-run? dry-run?
-                        #:use-substitutes? use-substitutes?
-                        #:mode mode)
-    (unless dry-run?
-      (continue #t))))
+    (let-values (((build? download?)
+                  (show-what-to-build store inputs
+                                      #:dry-run? dry-run?
+                                      #:use-substitutes? use-substitutes?
+                                      #:mode mode)))
+
+      (unless (and (or build? download?)
+                   dry-run?)
+        (continue #t)))))
 
 (define (right-arrow port)
   "Return either a string containing the 'RIGHT ARROW' character, or an ASCII
-- 
GitLab