1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 10:31:15 +02:00

Tighten parsing for drv files and pathinfo

This commit is contained in:
Carlo Nucera 2020-07-02 11:57:21 -04:00
parent b6b10b1d4c
commit 1fc835aa22
2 changed files with 4 additions and 4 deletions

View file

@ -118,7 +118,7 @@ static DerivationOutput parseDerivationOutput(const Store & store, istringstream
const HashType hashType = parseHashType(hashAlgo);
fsh = FixedOutputHash {
.method = std::move(method),
.hash = Hash::parseAny(hash, hashType),
.hash = Hash::parseNonSRIUnprefixed(hash, hashType),
};
}
@ -416,7 +416,7 @@ static DerivationOutput readDerivationOutput(Source & in, const Store & store)
auto hashType = parseHashType(hashAlgo);
fsh = FixedOutputHash {
.method = std::move(method),
.hash = Hash::parseAny(hash, hashType),
.hash = Hash::parseNonSRIUnprefixed(hash, hashType),
};
}