aboutsummaryrefslogtreecommitdiff
path: root/src/nix/doctor.cc
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2021-04-27 12:31:01 -0600
committerBen Burdette <bburdette@gmail.com>2021-04-27 12:31:01 -0600
commitb466d5195227ca1ce3932e8c0fef0bd5ff8334b1 (patch)
tree1159035cde18824ee1c9ef5c45d4159ee2134c8b /src/nix/doctor.cc
parente486996cef871337ef14991e709d7f2cc6611e4e (diff)
parente3e78ee2a2706745531ccf1a98729df59e7b295f (diff)
Merge branch 'master' into debugger-merge
Diffstat (limited to 'src/nix/doctor.cc')
-rw-r--r--src/nix/doctor.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nix/doctor.cc b/src/nix/doctor.cc
index 82e92cdd0..4f3003448 100644
--- a/src/nix/doctor.cc
+++ b/src/nix/doctor.cc
@@ -5,6 +5,7 @@
#include "serve-protocol.hh"
#include "shared.hh"
#include "store-api.hh"
+#include "local-fs-store.hh"
#include "util.hh"
#include "worker-protocol.hh"
@@ -49,9 +50,7 @@ struct CmdDoctor : StoreCommand
{
logger->log("Running checks against store uri: " + store->getUri());
- auto type = getStoreType();
-
- if (type < tOther) {
+ if (store.dynamic_pointer_cast<LocalFSStore>()) {
success &= checkNixInPath();
success &= checkProfileRoots(store);
}
@@ -133,4 +132,4 @@ struct CmdDoctor : StoreCommand
}
};
-static auto r1 = registerCommand<CmdDoctor>("doctor");
+static auto rCmdDoctor = registerCommand<CmdDoctor>("doctor");