summaryrefslogtreecommitdiff
path: root/solenv/bin/patch_sanitizer.pl
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-06-17 10:10:17 +0000
committerRüdiger Timm <rt@openoffice.org>2008-06-17 10:10:17 +0000
commit02f0d608a94df2e44dab0713baf2cde0651a44ef (patch)
tree8f0f47eff94eb91eefc3742a925748ae27886c17 /solenv/bin/patch_sanitizer.pl
parentef5e7b2c65827cd34328a0f8a9ed55367bef83fa (diff)
#i10000# Compare the whole patch data instead of number of lines.
Diffstat (limited to 'solenv/bin/patch_sanitizer.pl')
-rwxr-xr-xsolenv/bin/patch_sanitizer.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/solenv/bin/patch_sanitizer.pl b/solenv/bin/patch_sanitizer.pl
index a42aaab213e6..d08699c1c0b0 100755
--- a/solenv/bin/patch_sanitizer.pl
+++ b/solenv/bin/patch_sanitizer.pl
@@ -11,7 +11,7 @@ eval 'exec perl -wS $0 ${1+"$@"}'
#
# $RCSfile: patch_sanitizer.pl,v $
#
-# $Revision: 1.4 $
+# $Revision: 1.5 $
#
# This file is part of OpenOffice.org.
#
@@ -51,7 +51,7 @@ open SORTEDPATCH, "> $sortedfile";
foreach my $file (sort (keys %newpatchfile)) {
print SORTEDPATCH $file."\t";
if (defined($oldpatchfile{$file})) {
- if ( @{$oldpatchfile{$file}{'data'}} == @{$newpatchfile{$file}{'data'}} ) {
+ if ( (join '', @{$oldpatchfile{$file}{'data'}}) eq (join '', @{$newpatchfile{$file}{'data'}}) ) {
# patch data for the file hasn't been modified, use the header from
# the old patch, to reduce noise (keep the old timestamps)
print SORTEDPATCH $oldpatchfile{$file}{'origtimestamp'}."\n";