diff options
author | Nikita Karetnikov <nikita@karetnikov.org> | 2013-09-26 02:00:06 +0000 |
---|---|---|
committer | Nikita Karetnikov <nikita@karetnikov.org> | 2013-09-26 15:41:43 +0000 |
commit | 4658b2c47b7322bf7d8e1049557dc0ffc14ef88b (patch) | |
tree | 97dc81739e5d5e19130ae59b60338b63dc458fc5 | |
parent | c9cb0825c9fe129e0cf0300ef38729bcbf395857 (diff) | |
download | guix-4658b2c47b7322bf7d8e1049557dc0ffc14ef88b.tar guix-4658b2c47b7322bf7d8e1049557dc0ffc14ef88b.tar.gz |
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.
-rw-r--r-- | guix/scripts/package.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/scripts/package.scm b/guix/scripts/package.scm index 66505f172f..ed1e72c4ae 100644 --- a/guix/scripts/package.scm +++ b/guix/scripts/package.scm @@ -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) => |