[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/16: ui: 'build-notifier' invokes continuation when there's nothing to
From: |
guix-commits |
Subject: |
11/16: ui: 'build-notifier' invokes continuation when there's nothing to do. |
Date: |
Sun, 22 Mar 2020 07:43:13 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 9b771305df5dfc31c06b81fbdeaae753ba5d4afe
Author: Ludovic Courtès <address@hidden>
AuthorDate: Sun Mar 22 11:53:21 2020 +0100
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 1c0dd11..b9ba8c0 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -1078,12 +1078,15 @@ any build happening."
#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
- 03/16: ui: Add a notification build handler., (continued)
- 03/16: ui: Add a notification build handler., guix-commits, 2020/03/22
- 04/16: guix build: Use 'with-build-handler'., guix-commits, 2020/03/22
- 08/16: guix system: Use 'with-build-handler'., guix-commits, 2020/03/22
- 10/16: ui: 'show-what-to-build' returns two values, for builds and downloads., guix-commits, 2020/03/22
- 12/16: copy: Factorize 'with-store' & co., guix-commits, 2020/03/22
- 15/16: packages: 'package-field-location' handles missing source properties., guix-commits, 2020/03/22
- 13/16: copy: Actually implement '--dry-run'., guix-commits, 2020/03/22
- 07/16: guix package, pull: Use 'with-build-handler'., guix-commits, 2020/03/22
- 06/16: pack: Use 'with-build-handler'., guix-commits, 2020/03/22
- 09/16: ui: 'show-what-to-build' returns true when there are grafts to build., guix-commits, 2020/03/22
- 11/16: ui: 'build-notifier' invokes continuation when there's nothing to do.,
guix-commits <=
- 14/16: copy: Use 'with-build-handler'., guix-commits, 2020/03/22
- 16/16: hydra: evaluate: Use 'with-build-handler'., guix-commits, 2020/03/22