guix package: Exit with 0 when there is nothing to list.
* guix/scripts/package.scm (guix-package)[process-query]: Exit with 0 when there are no generations containing packages or no profiles.
This commit is contained in:
parent
c9cb0825c9
commit
4658b2c47b
|
@ -983,7 +983,7 @@ more information.~%"))
|
||||||
((string-null? pattern)
|
((string-null? pattern)
|
||||||
(let ((numbers (generation-numbers profile)))
|
(let ((numbers (generation-numbers profile)))
|
||||||
(if (equal? numbers '(0))
|
(if (equal? numbers '(0))
|
||||||
(exit 1)
|
(exit 0)
|
||||||
(for-each list-generation numbers))))
|
(for-each list-generation numbers))))
|
||||||
((matching-generations pattern profile)
|
((matching-generations pattern profile)
|
||||||
=>
|
=>
|
||||||
|
|
Loading…
Reference in New Issue