mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
Add tarball tests
This commit is contained in:
parent
da196ec68f
commit
bc51175dc0
3 changed files with 22 additions and 2 deletions
|
@ -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";
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue