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
|
@ -891,6 +891,9 @@ Create a bundle of PACKAGE.\n"))
|
||||||
(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 New Issue