Support percent encoded URIs for lower store.

This commit is contained in:
Ben Radford 2023-05-15 10:28:43 +01:00 committed by Ben Radford
parent b5591ece4c
commit b0989cb10b

View file

@ -1,5 +1,6 @@
#include "local-overlay-store.hh"
#include "callback.hh"
#include "url.hh"
#include <regex>
namespace nix {
@ -16,7 +17,7 @@ LocalOverlayStore::LocalOverlayStore(const Params & params)
, Store(params)
, LocalFSStore(params)
, LocalStore(params)
, lowerStore(openStore(lowerStoreUri).dynamic_pointer_cast<LocalFSStore>())
, lowerStore(openStore(percentDecode(lowerStoreUri.get())).dynamic_pointer_cast<LocalFSStore>())
{
if (checkMount.get()) {
std::smatch match;