aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/nar-info.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-06-16 21:37:26 +0200
committerGitHub <noreply@github.com>2020-06-16 21:37:26 +0200
commitdf4da4f5da1e390ac1eef5bfd455a8cf85dfe52c (patch)
tree86d90bdffef6308678e33377645a1d450b3671bf /src/libstore/nar-info.cc
parent2cb59f4e9919eb6fb199a3346439cb53227359bd (diff)
parentcc83a86276726699e5e856d26b5e24ce24f5cf34 (diff)
Merge pull request #3702 from NixOS/store-path-cxx
Rewrite StorePath class in C++
Diffstat (limited to 'src/libstore/nar-info.cc')
-rw-r--r--src/libstore/nar-info.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/nar-info.cc b/src/libstore/nar-info.cc
index 232284723..d7fc30e91 100644
--- a/src/libstore/nar-info.cc
+++ b/src/libstore/nar-info.cc
@@ -56,11 +56,11 @@ NarInfo::NarInfo(const Store & store, const std::string & s, const std::string &
auto refs = tokenizeString<Strings>(value, " ");
if (!references.empty()) corrupt();
for (auto & r : refs)
- references.insert(StorePath::fromBaseName(r));
+ references.insert(StorePath(r));
}
else if (name == "Deriver") {
if (value != "unknown-deriver")
- deriver = StorePath::fromBaseName(value);
+ deriver = StorePath(value);
}
else if (name == "System")
system = value;