guix-devel/guix
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
..
build Add (guix svn-download). 2014-03-27 00:21:44 +01:00
build-system build-system/perl: Honour phases argument in perl build system. 2013-12-09 13:50:58 +01:00
scripts Use 'signature-case' in (guix nar) and 'substitute-binary'. 2014-03-31 23:47:02 +02:00
base32.scm Update license headers. 2013-01-06 00:47:50 +01:00
base64.scm substitute-binary: Support the Signature field of a narinfo file. 2014-03-30 12:02:10 +02:00
build-system.scm Move record utilities to (guix records). 2013-05-12 15:46:16 +02:00
config.scm.in build: Change state and log directories to $localstatedir/.../guix. 2014-03-09 22:10:01 +01:00
derivations.scm Merge branch 'master' into core-updates 2014-03-17 18:26:46 +01:00
download.scm download: 'download-to-store' accepts plain file names. 2014-03-11 22:09:42 +01:00
ftp-client.scm ftp-client: Let callers handle `ftp-open' exceptions. 2013-05-14 23:51:36 +02:00
git-download.scm download: Perform derivations locally. 2014-03-06 21:42:24 +01:00
gnu-maintenance.scm gnu-maintenance: Adjust 'latest-release' to filter Bash's patch directories. 2014-02-28 00:01:53 +01:00
gnupg.scm guix refresh: Add '--key-download'. 2013-06-10 08:15:17 +00:00
hash.scm hash: Add 'open-sha256-input-port', for Guile > 2.0.9. 2014-01-24 00:01:49 +01:00
http-client.scm substitute-binary: Gracefully handle HTTP GET errors. 2014-03-01 15:38:11 +01:00
licenses.scm licenses: Fix Nixpkgs license URL. 2014-03-22 22:57:09 +01:00
monads.scm monads: Add 'text-file*'. 2014-02-03 23:20:49 +01:00
nar.scm Use 'signature-case' in (guix nar) and 'substitute-binary'. 2014-03-31 23:47:02 +02:00
packages.scm Change default store values from /nix/store to /gnu/store. 2014-03-10 23:54:27 +01:00
pk-crypto.scm pk-crypto: Don't use Ed25519 when libgcrypt is older than 1.6.0. 2014-03-20 23:06:47 +01:00
pki.scm pki: Add 'signature-case' macro. 2014-03-31 23:34:20 +02:00
profiles.scm Prefer local builds for "small" derivations. 2014-01-25 17:22:53 +01:00
records.scm records: define-record-type*: Field bindings are bound with 'let*'. 2013-10-15 23:31:22 +02:00
serialization.scm store: Add #:timeout build option. 2014-03-09 23:01:18 +01:00
snix.scm snix: Prefer descriptions from the Womb rather than from Nixpkgs. 2013-10-09 16:18:23 +02:00
store.scm store: Add 'hash-part->path'. 2014-03-14 17:16:10 +01:00
svn-download.scm Add (guix svn-download). 2014-03-27 00:21:44 +01:00
ui.scm ui: Handle SRFI-35 '&message' conditions. 2014-02-21 23:49:52 +01:00
utils.scm utils: Add 'call-with-decompressed-port' and 'call-with-compressed-output-port'. 2014-03-24 22:15:29 +01:00