[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/10: pack: Warn when building an empty pack.
From: |
guix-commits |
Subject: |
02/10: pack: Warn when building an empty pack. |
Date: |
Tue, 21 May 2019 18:09:53 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 3f8326237df780404c172ef4127195cc20becd66
Author: Ludovic Courtès <address@hidden>
Date: Tue May 21 14:49:58 2019 +0200
pack: Warn when building an empty pack.
* guix/scripts/pack.scm (guix-pack): Warn when MANIFEST has zero
entries.
---
guix/scripts/pack.scm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm
index 58c6ac6..c17b374 100644
--- a/guix/scripts/pack.scm
+++ b/guix/scripts/pack.scm
@@ -891,6 +891,9 @@ Create a bundle of PACKAGE.\n"))
(localstatedir? (assoc-ref opts 'localstatedir?))
(profile-name (assoc-ref opts 'profile-name))
(gc-root (assoc-ref opts 'gc-root)))
+ (when (null? (manifest-entries manifest))
+ (warning (G_ "no packages specified; building an empty pack~%")))
+
(run-with-store store
(mlet* %store-monad ((profile (profile-derivation
manifest
- branch master updated (6acf6ce -> ea54133), guix-commits, 2019/05/21
- 02/10: pack: Warn when building an empty pack.,
guix-commits <=
- 03/10: gnu: libstdc++-doc: Unhide., guix-commits, 2019/05/21
- 01/10: pack: Add '--root'., guix-commits, 2019/05/21
- 06/10: gnu: emacs: Make build more reproducible, guix-commits, 2019/05/21
- 09/10: gnu: gettext-minimal: Specify upstream name and CPE name., guix-commits, 2019/05/21
- 10/10: gnu: Add libtextstyle., guix-commits, 2019/05/21
- 04/10: gnu: libstdc++-doc: Add version 9.x., guix-commits, 2019/05/21
- 05/10: gnu: Add mallard-ducktype, guix-commits, 2019/05/21
- 08/10: weather: Accept package specs on the command line., guix-commits, 2019/05/21
- 07/10: gnu: emacs-minimal, emacs-xwidgets: Build with "--disable-build-details"., guix-commits, 2019/05/21