mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 12:06:01 +01:00
DerivationBuilder::registerOutputs: Inline checkSuffix
It is a simple constant that is only used once.
This commit is contained in:
parent
4bc9ae67c7
commit
870bb68d38
1 changed files with 1 additions and 3 deletions
|
|
@ -1422,8 +1422,6 @@ SingleDrvOutputs DerivationBuilderImpl::registerOutputs()
|
||||||
outputs to allow hard links between outputs. */
|
outputs to allow hard links between outputs. */
|
||||||
InodesSeen inodesSeen;
|
InodesSeen inodesSeen;
|
||||||
|
|
||||||
Path checkSuffix = ".check";
|
|
||||||
|
|
||||||
std::exception_ptr delayedException;
|
std::exception_ptr delayedException;
|
||||||
|
|
||||||
/* The paths that can be referenced are the input closures, the
|
/* The paths that can be referenced are the input closures, the
|
||||||
|
|
@ -1839,7 +1837,7 @@ SingleDrvOutputs DerivationBuilderImpl::registerOutputs()
|
||||||
if (newInfo.narHash != oldInfo.narHash) {
|
if (newInfo.narHash != oldInfo.narHash) {
|
||||||
miscMethods->noteCheckMismatch();
|
miscMethods->noteCheckMismatch();
|
||||||
if (settings.runDiffHook || settings.keepFailed) {
|
if (settings.runDiffHook || settings.keepFailed) {
|
||||||
auto dst = store.toRealPath(finalDestPath + checkSuffix);
|
auto dst = store.toRealPath(finalDestPath + ".check");
|
||||||
deletePath(dst);
|
deletePath(dst);
|
||||||
movePath(actualPath, dst);
|
movePath(actualPath, dst);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue