mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-30 01:26:15 +02: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
1 changed files with 1 additions and 1 deletions
|
@ -731,7 +731,7 @@ StoreType getStoreType(const std::string & uri, const std::string & stateDir)
|
||||||
return tDaemon;
|
return tDaemon;
|
||||||
} else if (uri == "local") {
|
} else if (uri == "local") {
|
||||||
return tLocal;
|
return tLocal;
|
||||||
} else if (uri == "") {
|
} else if (uri == "" || uri == "auto") {
|
||||||
if (access(stateDir.c_str(), R_OK | W_OK) == 0)
|
if (access(stateDir.c_str(), R_OK | W_OK) == 0)
|
||||||
return tLocal;
|
return tLocal;
|
||||||
else if (pathExists(settings.nixDaemonSocketFile))
|
else if (pathExists(settings.nixDaemonSocketFile))
|
||||||
|
|
Loading…
Reference in a new issue