forked from lix-project/lix
Explain various .self = false,
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
This commit is contained in:
parent
fd21f9d76e
commit
537e8719f2
|
@ -315,6 +315,7 @@ StorePath BinaryCacheStore::addToStoreFromDump(Source & dump, std::string_view n
|
||||||
},
|
},
|
||||||
.references = {
|
.references = {
|
||||||
.others = references,
|
.others = references,
|
||||||
|
// caller is not capable of creating a self-reference, because this is content-addressed without modulus
|
||||||
.self = false,
|
.self = false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -433,6 +434,7 @@ StorePath BinaryCacheStore::addToStore(
|
||||||
},
|
},
|
||||||
.references = {
|
.references = {
|
||||||
.others = references,
|
.others = references,
|
||||||
|
// caller is not capable of creating a self-reference, because this is content-addressed without modulus
|
||||||
.self = false,
|
.self = false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -1328,6 +1328,7 @@ StorePath LocalStore::addToStoreFromDump(Source & source0, std::string_view name
|
||||||
},
|
},
|
||||||
.references = {
|
.references = {
|
||||||
.others = references,
|
.others = references,
|
||||||
|
// caller is not capable of creating a self-reference, because this is content-addressed without modulus
|
||||||
.self = false,
|
.self = false,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -209,6 +209,7 @@ struct ProfileManifest
|
||||||
},
|
},
|
||||||
.references = {
|
.references = {
|
||||||
.others = std::move(references),
|
.others = std::move(references),
|
||||||
|
// profiles never refer to themselves
|
||||||
.self = false,
|
.self = false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue