download: Allow raw file names or file:// URLs.
authorLudovic Courtès <ludo@gnu.org>
Fri, 3 Oct 2014 09:02:11 +0000 (11:02 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 3 Oct 2014 16:03:09 +0000 (18:03 +0200)
commit882383a9aa5fbeef6f29d359a786a6db7c9e03db
tree323b5cffbe95c01b070064f1c89f3f968ba95ba2
parentb497a85be8490f0f91279119904fd76ae13cbea5
download: Allow raw file names or file:// URLs.

* guix/download.scm (url-fetch): When URL is a string, if it's not a URI
  or if it's a URI with 'file' or #f scheme, use 'add-to-store'.
* tests/builders.scm ("url-fetch, file", "url-fetch, file URI"): New
  tests.
guix/download.scm
tests/builders.scm