store: Add substitute-related procedures.
authorLudovic Courtès <ludo@gnu.org>
Sun, 3 Feb 2013 22:24:25 +0000 (23:24 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 4 Feb 2013 07:58:48 +0000 (08:58 +0100)
commit0f3d2504f75595a2db2a2344b624ced2ba307448
treee2fabb0313fa177717090e5b44818af2817e2d57
parent63193ebfdc72eb11cfb1c50b8cd5dfc49d01361d
store: Add substitute-related procedures.

* guix/store.scm (has-substitutes?, substitutable-paths,
  read-substitutable-path-list, substitutable-path-info): New
  procedures.
  (<substitutable>): New record type.
  (read-arg): Add `substitutable-path-info'.  Change `hash' pattern
  variable to `base16' literal.
* tests/store.scm ("no substitutes"): New test.
guix/store.scm
tests/store.scm