diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-05-04 15:38:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-04 15:38:52 +0200 |
commit | fe3a10a9b2c61ba19b24da4c93c4abc9e7583f3d (patch) | |
tree | 13070336fa1347067f9d667b9d5667853ce99ace /src | |
parent | ef13c9c2236f06a6bd41a19d28a7feff3aae7dc8 (diff) | |
parent | dadfbce318c53ae0c53121deab6ab7e07c396164 (diff) |
Merge pull request #4767 from NixOS/fix-s3-ca-caching
Fix the double-slash in the realisations path
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/binary-cache-store.hh | 2 | ||||
-rw-r--r-- | src/libstore/local-binary-cache-store.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/binary-cache-store.hh b/src/libstore/binary-cache-store.hh index c2163166c..657be2fcf 100644 --- a/src/libstore/binary-cache-store.hh +++ b/src/libstore/binary-cache-store.hh @@ -34,7 +34,7 @@ private: protected: // The prefix under which realisation infos will be stored - const std::string realisationsPrefix = "/realisations"; + const std::string realisationsPrefix = "realisations"; BinaryCacheStore(const Params & params); diff --git a/src/libstore/local-binary-cache-store.cc b/src/libstore/local-binary-cache-store.cc index 964c4017e..f93111fce 100644 --- a/src/libstore/local-binary-cache-store.cc +++ b/src/libstore/local-binary-cache-store.cc @@ -93,7 +93,7 @@ protected: void LocalBinaryCacheStore::init() { createDirs(binaryCacheDir + "/nar"); - createDirs(binaryCacheDir + realisationsPrefix); + createDirs(binaryCacheDir + "/" + realisationsPrefix); if (writeDebugInfo) createDirs(binaryCacheDir + "/debuginfo"); BinaryCacheStore::init(); |