guix download: Support retrieving local file without the URI scheme.
author宋文武 <iyzsong@member.fsf.org>
Sat, 19 Aug 2017 12:41:44 +0000 (20:41 +0800)
committer宋文武 <iyzsong@member.fsf.org>
Sun, 20 Aug 2017 12:55:45 +0000 (20:55 +0800)
commita02967d77af03d6468e25d6e26dbea0db919ce96
tree66ca3cdddb4ccbb37a0f053fcbd9af95ca1f0e30
parent6d7d9d9507484773eff697a01f422ea984936373
guix download: Support retrieving local file without the URI scheme.

* guix/scripts/download.scm (guix-download): Treat the URL argument as a local
file path when it fails on 'string->uri'.  Call 'fetch' with the processed
'uri' instead of the original URL argument.
* tests/guix-download.sh: Adjust accordingly.
guix/scripts/download.scm
tests/guix-download.sh