mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
Don't add StorePathDescriptor
for now
We don't need it yet, we can add it back later.
This commit is contained in:
parent
c67e0cc58c
commit
4540e7b940
14 changed files with 126 additions and 151 deletions
|
@ -307,17 +307,15 @@ StorePath BinaryCacheStore::addToStoreFromDump(Source & dump, std::string_view n
|
|||
return addToStoreCommon(dump, repair, CheckSigs, [&](HashResult nar) {
|
||||
ValidPathInfo info {
|
||||
*this,
|
||||
{
|
||||
.name = std::string { name },
|
||||
.info = FixedOutputInfo {
|
||||
{
|
||||
.method = method,
|
||||
.hash = nar.first,
|
||||
},
|
||||
.references = {
|
||||
.others = references,
|
||||
.self = false,
|
||||
},
|
||||
name,
|
||||
FixedOutputInfo {
|
||||
{
|
||||
.method = method,
|
||||
.hash = nar.first,
|
||||
},
|
||||
.references = {
|
||||
.others = references,
|
||||
.self = false,
|
||||
},
|
||||
},
|
||||
nar.first,
|
||||
|
@ -427,17 +425,15 @@ StorePath BinaryCacheStore::addToStore(
|
|||
return addToStoreCommon(*source, repair, CheckSigs, [&](HashResult nar) {
|
||||
ValidPathInfo info {
|
||||
*this,
|
||||
{
|
||||
.name = std::string { name },
|
||||
.info = FixedOutputInfo {
|
||||
{
|
||||
.method = method,
|
||||
.hash = h,
|
||||
},
|
||||
.references = {
|
||||
.others = references,
|
||||
.self = false,
|
||||
},
|
||||
name,
|
||||
FixedOutputInfo {
|
||||
{
|
||||
.method = method,
|
||||
.hash = h,
|
||||
},
|
||||
.references = {
|
||||
.others = references,
|
||||
.self = false,
|
||||
},
|
||||
},
|
||||
nar.first,
|
||||
|
@ -465,12 +461,10 @@ StorePath BinaryCacheStore::addTextToStore(
|
|||
return addToStoreCommon(source, repair, CheckSigs, [&](HashResult nar) {
|
||||
ValidPathInfo info {
|
||||
*this,
|
||||
{
|
||||
.name = std::string { name },
|
||||
.info = TextInfo {
|
||||
{ .hash = textHash },
|
||||
references,
|
||||
},
|
||||
std::string { name },
|
||||
TextInfo {
|
||||
{ .hash = textHash },
|
||||
references,
|
||||
},
|
||||
nar.first,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue