mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 06:46:50 +01:00
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
1 changed files with 1 additions and 1 deletions
|
@ -983,7 +983,7 @@ (define (list-generation number)
|
|||
((string-null? pattern)
|
||||
(let ((numbers (generation-numbers profile)))
|
||||
(if (equal? numbers '(0))
|
||||
(exit 1)
|
||||
(exit 0)
|
||||
(for-each list-generation numbers))))
|
||||
((matching-generations pattern profile)
|
||||
=>
|
||||
|
|
Loading…
Reference in a new issue