mirror of
https://github.com/NixOS/nix.git
synced 2024-11-26 08:42:30 +00:00
Allow "auto" as a store URI
Using the empty string is likely to be ambiguous in some contexts.
This commit is contained in:
parent
d8ff3aaae7
commit
95295482ea
@ -731,7 +731,7 @@ StoreType getStoreType(const std::string & uri, const std::string & stateDir)
|
||||
return tDaemon;
|
||||
} else if (uri == "local") {
|
||||
return tLocal;
|
||||
} else if (uri == "") {
|
||||
} else if (uri == "" || uri == "auto") {
|
||||
if (access(stateDir.c_str(), R_OK | W_OK) == 0)
|
||||
return tLocal;
|
||||
else if (pathExists(settings.nixDaemonSocketFile))
|
||||
|
Loading…
Reference in New Issue
Block a user