From bfb11fd0301c1c583319bd2e8211ef434e078792 Mon Sep 17 00:00:00 2001 From: aszlig Date: Sun, 23 Nov 2014 23:11:06 +0100 Subject: [PATCH] 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 --- pkgs/build-support/buildenv/builder.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/build-support/buildenv/builder.pl b/pkgs/build-support/buildenv/builder.pl index 7f1be392544..c505473ee72 100755 --- a/pkgs/build-support/buildenv/builder.pl +++ b/pkgs/build-support/buildenv/builder.pl @@ -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"; }