forked from lix-project/lix
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;
|
||||
} 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 a new issue