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:
@@ -96,11 +96,11 @@ sub findFiles {
|
|||||||
}
|
}
|
||||||
|
|
||||||
unless (-d $target && ($oldTarget eq "" || -d $oldTarget)) {
|
unless (-d $target && ($oldTarget eq "" || -d $oldTarget)) {
|
||||||
if ($checkCollisionContents && checkCollision($oldTarget, $target)) {
|
if ($ignoreCollisions) {
|
||||||
return;
|
|
||||||
} elsif ($ignoreCollisions) {
|
|
||||||
warn "collision between `$target' and `$oldTarget'\n" if $ignoreCollisions == 1;
|
warn "collision between `$target' and `$oldTarget'\n" if $ignoreCollisions == 1;
|
||||||
return;
|
return;
|
||||||
|
} elsif ($checkCollisionContents && checkCollision($oldTarget, $target)) {
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
die "collision between `$target' and `$oldTarget'\n";
|
die "collision between `$target' and `$oldTarget'\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user