about summary refs log tree commit diff
path: root/src/libstore/local-store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-06-03T11·37+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-06-03T12·02+0200
commit30c8c3ba2d5be3a02db00e89bd54cd050764a209 (patch)
tree480fc931e0ef41d6592bfa5f337f30ce8be3dea7 /src/libstore/local-store.cc
parenta8dfdc52b83eb12f174366aae173c37da66943b6 (diff)
Fix some more references to storeDir
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r--src/libstore/local-store.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index 33df25c15833..f70742f22de9 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -547,7 +547,7 @@ uint64_t LocalStore::addValidPath(State & state,
        efficiently query whether a path is an output of some
        derivation. */
     if (isDerivation(info.path)) {
-        Derivation drv = readDerivation(info.path);
+        Derivation drv = readDerivation(realStoreDir + "/" + baseNameOf(info.path));
 
         /* Verify that the output paths in the derivation are correct
            (i.e., follow the scheme for computing output paths from
@@ -869,7 +869,7 @@ void LocalStore::registerValidPaths(const ValidPathInfos & infos)
             if (isDerivation(i.path)) {
                 // FIXME: inefficient; we already loaded the
                 // derivation in addValidPath().
-                Derivation drv = readDerivation(i.path);
+                Derivation drv = readDerivation(realStoreDir + "/" + baseNameOf(i.path));
                 checkDerivationOutputs(i.path, drv);
             }