substitute: Pass the cache URL instead of <cache> objects.
commit074efd63a8b220fc1c6e450c4ac31b153ebd5f84
authorLudovic Courtès <ludo@gnu.org>
Mon, 13 Jul 2015 09:38:31 +0000 (13 11:38 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 13 Jul 2015 16:29:01 +0000 (13 18:29 +0200)
treefa44264d943e237c94cff88a5551b64a6907779e
parente4e099feca0d6725b6614c2acdbae7f1dab261fb
substitute: Pass the cache URL instead of <cache> objects.

* guix/scripts/substitute.scm (<cache>): Rename to...
  (<cache-info>): ... this.
  (open-cache): Rename to...
  (download-cache-info): ... this.  Return a <cache-info> or #f.
  (open-cache*): Remove.
  (cache-narinfo!): Take a URL instead of a <cache> as the first parameter.
  (fetch-narinfos): Likewise.  Call 'download-cache-info'.  Remove use of
  'force'.
  (guix-substitute): Replace calls to 'open-cache*' with %CACHE-URL.
guix/scripts/substitute.scm