mirror of
https://github.com/NixOS/nix.git
synced 2025-11-27 04:30:59 +01:00
This commit is contained in:
parent
b378df6484
commit
ba437f451e
3 changed files with 3 additions and 17 deletions
|
|
@ -146,9 +146,8 @@ void checkStatePath(const Derivation & drv)
|
|||
string stateIdentifier = drv.stateOutputs.find("state")->second.stateIdentifier;
|
||||
Path calculatedPath = makeStatePath(componentHash, suffix, stateIdentifier);
|
||||
|
||||
printMsg(lvlError, format("CHECK: %1% %2%") % drvPath % calculatedPath);
|
||||
|
||||
|
||||
printMsg(lvlError, format("Checking statePath validity: %1% %2%") % drvPath % calculatedPath);
|
||||
|
||||
if(drvPath != calculatedPath)
|
||||
Error(format("The statepath from the Derivation does not match the recalculated statepath, are u trying to spoof the statepath?"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue