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>
commitbfb11fd0301c1c583319bd2e8211ef434e078792
authoraszlig <aszlig@redmoonstudios.org>
dateSun 23 Nov 2014, 23:11 (12 years ago)
parent4529ed1
pkgs/build-support/buildenv/builder.pl+3−3
@@ -96,11 +96,11 @@ sub findFiles {
9696 }
9797
9898 unless (-d $target && ($oldTarget eq "" || -d $oldTarget)) {
99− if ($checkCollisionContents && checkCollision($oldTarget, $target)) {
100− return;
101− } elsif ($ignoreCollisions) {
99+ if ($ignoreCollisions) {
102100 warn "collision between `$target' and `$oldTarget'\n" if $ignoreCollisions == 1;
103101 return;
102+ } elsif ($checkCollisionContents && checkCollision($oldTarget, $target)) {
103+ return;
104104 } else {
105105 die "collision between `$target' and `$oldTarget'\n";
106106 }