1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

Add tarball tests

This commit is contained in:
Eelco Dolstra 2015-06-01 16:18:23 +02:00
parent da196ec68f
commit bc51175dc0
3 changed files with 22 additions and 2 deletions

View file

@ -229,7 +229,7 @@ bool isUri(const string & s)
size_t pos = s.find("://");
if (pos == string::npos) return false;
string scheme(s, 0, pos);
return scheme == "http" || scheme == "https";
return scheme == "http" || scheme == "https" || scheme == "file";
}