mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-20 14:47:20 +01:00
pack: Warn when building an empty pack.
* guix/scripts/pack.scm (guix-pack): Warn when MANIFEST has zero entries.
This commit is contained in:
parent
fd214f1522
commit
3f8326237d
1 changed files with 3 additions and 0 deletions
|
@ -891,6 +891,9 @@ (define properties
|
||||||
(localstatedir? (assoc-ref opts 'localstatedir?))
|
(localstatedir? (assoc-ref opts 'localstatedir?))
|
||||||
(profile-name (assoc-ref opts 'profile-name))
|
(profile-name (assoc-ref opts 'profile-name))
|
||||||
(gc-root (assoc-ref opts 'gc-root)))
|
(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
|
(run-with-store store
|
||||||
(mlet* %store-monad ((profile (profile-derivation
|
(mlet* %store-monad ((profile (profile-derivation
|
||||||
manifest
|
manifest
|
||||||
|
|
Loading…
Reference in a new issue