diff options
author | Ludovic Courtès <ludo@gnu.org> | 2019-05-21 14:49:58 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-05-22 00:09:41 +0200 |
commit | 3f8326237df780404c172ef4127195cc20becd66 (patch) | |
tree | d2b60b70a0c7732b29a2db4f726acda17528c3bb /guix/scripts/pack.scm | |
parent | fd214f1522063905021a297dab1ac4d85d94ad83 (diff) | |
download | gnu-guix-3f8326237df780404c172ef4127195cc20becd66.tar gnu-guix-3f8326237df780404c172ef4127195cc20becd66.tar.gz |
pack: Warn when building an empty pack.
* guix/scripts/pack.scm (guix-pack): Warn when MANIFEST has zero
entries.
Diffstat (limited to 'guix/scripts/pack.scm')
-rw-r--r-- | guix/scripts/pack.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm index 58c6ac6148..c17b374330 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 |