aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/store-api.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc
index 64f9b8d68..1a0d12ca7 100644
--- a/src/libstore/store-api.cc
+++ b/src/libstore/store-api.cc
@@ -757,7 +757,8 @@ bool ValidPathInfo::isContentAddressed(const Store & store) const
else if (hasPrefix(ca, "fixed:")) {
bool recursive = ca.compare(6, 2, "r:") == 0;
Hash hash(std::string(ca, recursive ? 8 : 6));
- if (store.makeFixedOutputPath(recursive, hash, storePathToName(path)) == path)
+ if (references.empty() &&
+ store.makeFixedOutputPath(recursive, hash, storePathToName(path)) == path)
return true;
else
warn();