guix-devel/guix/scripts
Ludovic Courtès e4687a5e68 Use 'signature-case' in (guix nar) and 'substitute-binary'.
* guix/nar.scm (restore-file-set)[assert-valid-signature]: Rewrite in
  terms of 'signature-case'.
* guix/scripts/substitute-binary.scm (narinfo-signature->canonical-sexp):
  Call 'leave' instead of 'raise' when SIGNATURE is invalid.
  (&nar-signature-error, &nar-invalid-hash-error): Remove.
  (assert-valid-signature): Add 'narinfo' parameter; remove 'port'.
  Rewrite in terms of 'signature-case' and 'leave'.  Mention NARINFO's
  URI in error messages.  Adjust caller.
  (narinfo-sha256): New procedure.
  (assert-valid-narinfo): Use it.
  (valid-narinfo?): Rewrite using 'narinfo-sha256' and
  'signature-case'.
* tests/substitute-binary.scm (assert-valid-signature,
  test-error-condition): Remove.
  ("corrupt signature data", "unauthorized public key", "invalid
  signature"): Remove.
2014-03-31 23:47:02 +02:00
..
archive.scm guix archive: Make sure $sysconfdir/guix exists in '--authorize'. 2014-03-31 21:59:14 +02:00
authenticate.scm authenticate: Support reading the hash or key from stdin. 2014-03-22 22:57:10 +01:00
build.scm guix build: Support '--with-source' along with '-e'. 2014-03-13 19:21:49 +01:00
download.scm Use `port-sha256' and `open-sha256-port'. 2013-07-03 01:18:24 +02:00
gc.scm guix gc: Add `--requisites'. 2013-06-13 22:15:41 +02:00
hash.scm guix hash: Add '--recursive'. 2014-02-21 23:49:52 +01:00
import.scm ui: Add `args-fold*' and use it. 2013-04-27 16:46:39 +02:00
offload.scm offload: Exit with code 100 upon build failures. 2014-03-31 10:57:28 +02:00
package.scm guix package: Use the common build options from (guix scripts build). 2014-03-01 18:29:29 +01:00
pull.scm pull: Move build code to (guix build pull). 2013-12-16 23:26:48 +01:00
refresh.scm guix refresh: Keep only the newest versions of packages as upgrade candidates. 2013-07-11 19:56:30 +02:00
substitute-binary.scm Use 'signature-case' in (guix nar) and 'substitute-binary'. 2014-03-31 23:47:02 +02:00
system.scm gnu: Introduce the (gnu services ...) modules. 2014-02-19 20:58:24 +01:00