~ruther/guix-local

4658b2c47b7322bf7d8e1049557dc0ffc14ef88b — Nikita Karetnikov 12 years ago c9cb082
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.
1 files changed, 1 insertions(+), 1 deletions(-)

M guix/scripts/package.scm
M guix/scripts/package.scm => guix/scripts/package.scm +1 -1
@@ 983,7 983,7 @@ more information.~%"))
               ((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)
                =>