diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-06-24 22:46:27 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-06-25 17:53:31 +0000 |
commit | 71e4c9c505f2418084643c1a68da5c89b82038dd (patch) | |
tree | 875c3a5489b9a45ad662da27db9eefd3cf09969b /src/libstore/binary-cache-store.cc | |
parent | 1722ae6ecee54e14164d215ba3d767ea6c352fc3 (diff) |
WIP: store separate `hasValidPath` bool
Diffstat (limited to 'src/libstore/binary-cache-store.cc')
-rw-r--r-- | src/libstore/binary-cache-store.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstore/binary-cache-store.cc b/src/libstore/binary-cache-store.cc index 9f52ddafa..7167ec900 100644 --- a/src/libstore/binary-cache-store.cc +++ b/src/libstore/binary-cache-store.cc @@ -125,8 +125,7 @@ void BinaryCacheStore::addToStore(const ValidPathInfo & info, Source & narSource reads, but typically they'll already be cached. */ for (auto & ref : info.references) try { - if (ref != info.path) - queryPathInfo(ref); + queryPathInfo(ref); } catch (InvalidPath &) { throw Error("cannot add '%s' to the binary cache because the reference '%s' is not valid", printStorePath(info.path), printStorePath(ref)); |