mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
buildEnv: Skip content check on ignoreCollisions.
Checking file contents is redundant in this case, because we will go ahead anyway, regardless of whether the content is the same. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
4529ed1259
commit
bfb11fd030
@ -96,11 +96,11 @@ sub findFiles {
|
||||
}
|
||||
|
||||
unless (-d $target && ($oldTarget eq "" || -d $oldTarget)) {
|
||||
if ($checkCollisionContents && checkCollision($oldTarget, $target)) {
|
||||
return;
|
||||
} elsif ($ignoreCollisions) {
|
||||
if ($ignoreCollisions) {
|
||||
warn "collision between `$target' and `$oldTarget'\n" if $ignoreCollisions == 1;
|
||||
return;
|
||||
} elsif ($checkCollisionContents && checkCollision($oldTarget, $target)) {
|
||||
return;
|
||||
} else {
|
||||
die "collision between `$target' and `$oldTarget'\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user