substitute: Validate substitute URLs.
authorLudovic Courtès <ludo@gnu.org>
Tue, 2 May 2017 10:28:23 +0000 (12:28 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 2 May 2017 10:32:52 +0000 (12:32 +0200)
commit8a2105078b5845e31768da06b360676352b1f3e9
tree07c0ec70926042fab5bef4442d66f52a19b58b54
parent49f9d7f697d19870f01104cdb6a90a32aea87679
substitute: Validate substitute URLs.

Reported by Maxim Cournoyer <maxim.cournoyer@gmail.com>
at <https://lists.gnu.org/archive/html/guix-devel/2017-04/msg00548.html>.

* guix/scripts/substitute.scm (validate-uri): New procedure.
(guix-substitute): Use it.
guix/scripts/substitute.scm