mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +02:00
nix doctor: only perform path/profile checks with a daemon/local store
Not all store types LegacySSHStore support these operations and it doesn't really make sense to check those.
This commit is contained in:
parent
bfdca55868
commit
80a4b44d3d
1 changed files with 6 additions and 3 deletions
|
@ -33,8 +33,12 @@ struct CmdDoctor : StoreCommand
|
||||||
std::cout << "Store uri: " << store->getUri() << std::endl;
|
std::cout << "Store uri: " << store->getUri() << std::endl;
|
||||||
std::cout << std::endl;
|
std::cout << std::endl;
|
||||||
|
|
||||||
checkNixInPath();
|
auto type = getStoreType();
|
||||||
checkProfileRoots(store);
|
|
||||||
|
if (type < tOther) {
|
||||||
|
checkNixInPath();
|
||||||
|
checkProfileRoots(store);
|
||||||
|
}
|
||||||
checkStoreProtocol(store->getProtocol());
|
checkStoreProtocol(store->getProtocol());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,7 +60,6 @@ struct CmdDoctor : StoreCommand
|
||||||
|
|
||||||
void checkProfileRoots(ref<Store> store) {
|
void checkProfileRoots(ref<Store> store) {
|
||||||
PathSet dirs;
|
PathSet dirs;
|
||||||
|
|
||||||
Roots roots = store->findRoots();
|
Roots roots = store->findRoots();
|
||||||
|
|
||||||
for (auto & dir : tokenizeString<Strings>(getEnv("PATH"), ":"))
|
for (auto & dir : tokenizeString<Strings>(getEnv("PATH"), ":"))
|
||||||
|
|
Loading…
Reference in a new issue