Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix the double-slash in the realisations path
Make sure that we always access the realisations under
`binaryCacheUrl/realisations` and not `binaryCacheUrl//realisations`

Fix #4766
  • Loading branch information
thufschmitt committed May 4, 2021
1 parent ef13c9c commit dadfbce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libstore/binary-cache-store.hh
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/libstore/local-binary-cache-store.cc
Expand Up @@ -93,7 +93,7 @@ class LocalBinaryCacheStore : public virtual LocalBinaryCacheStoreConfig, public
void LocalBinaryCacheStore::init()
{
createDirs(binaryCacheDir + "/nar");
createDirs(binaryCacheDir + realisationsPrefix);
createDirs(binaryCacheDir + "/" + realisationsPrefix);
if (writeDebugInfo)
createDirs(binaryCacheDir + "/debuginfo");
BinaryCacheStore::init();
Expand Down

0 comments on commit dadfbce

Please sign in to comment.