guix package: Exit with 1 when a generation cannot be listed.
authorNikita Karetnikov <nikita@karetnikov.org>
Tue, 24 Sep 2013 22:11:16 +0000 (22:11 +0000)
committerNikita Karetnikov <nikita@karetnikov.org>
Wed, 25 Sep 2013 16:07:50 +0000 (16:07 +0000)
commit0ab212b9466d5aa3fe801c9137248703245d8513
tree26ead056ff74e396e4cf7d7cfb22d29b6fd59c14
parent98fbd7ceebd7930f23a8985b9080d3a7cac7818a
guix package: Exit with 1 when a generation cannot be listed.

* guix/scripts/package.scm (guix-package)[process-query]: Exit with 1
  when a generation does not exist or the profile points to the zeroth
  generation.
* tests/guix-package.sh: Test the former case.
guix/scripts/package.scm
tests/guix-package.sh