mirror of
https://github.com/NixOS/nix.git
synced 2025-11-27 12:41:00 +01:00
Small fix
This commit is contained in:
parent
5cac336820
commit
802d7f40bd
6 changed files with 26 additions and 12 deletions
|
|
@ -85,8 +85,8 @@ Derivation parseDerivation(ATerm t)
|
|||
|
||||
//parse state part
|
||||
for (ATermIterator i(stateOuts); i; ++i) {
|
||||
ATerm id, statepath, hashAlgo, hash, enabled, shared, synchronization;
|
||||
if (!matchDerivationStateOutput(*i, id, statepath, hashAlgo, hash, enabled, shared, synchronization))
|
||||
ATerm id, statepath, hashAlgo, hash, enabled, shared, synchronization, createDirsBeforeInstall;
|
||||
if (!matchDerivationStateOutput(*i, id, statepath, hashAlgo, hash, enabled, shared, synchronization, createDirsBeforeInstall))
|
||||
throwBadDrv(t);
|
||||
DerivationStateOutput stateOut;
|
||||
stateOut.statepath = aterm2String(statepath);
|
||||
|
|
@ -96,6 +96,7 @@ Derivation parseDerivation(ATerm t)
|
|||
stateOut.enabled = aterm2String(enabled);
|
||||
stateOut.shared = aterm2String(shared);
|
||||
stateOut.synchronization = aterm2String(synchronization);
|
||||
stateOut.createDirsBeforeInstall = aterm2String(createDirsBeforeInstall);
|
||||
drv.stateOutputs[aterm2String(id)] = stateOut;
|
||||
}
|
||||
|
||||
|
|
@ -168,7 +169,8 @@ ATerm unparseDerivation(const Derivation & drv)
|
|||
toATerm(i->second.hash),
|
||||
toATerm(i->second.enabled),
|
||||
toATerm(i->second.shared),
|
||||
toATerm(i->second.synchronization)
|
||||
toATerm(i->second.synchronization),
|
||||
toATerm(i->second.createDirsBeforeInstall)
|
||||
));
|
||||
|
||||
ATermList stateOutputDirs = ATempty;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue