Bug 550704 - js/src/config/check-sync-dirs.py doesn't check file contents.
authorMike Hommey <mh+mozilla@glandium.org>
Mon, 29 Mar 2010 23:06:32 +0200
changeset 33765 52991d0b8a5b871b506fa85048868f49e986436a
parent 33764 82cb6ada7eff9776d00cf05115871554117847bc
child 33766 1ea19a395253947d5fe2874a1511a6e8d71959d3
push id1174
push usersgautherie.bz@free.fr
push dateMon, 29 Mar 2010 21:07:05 +0000
bugs550704
milestone1.9.2.3pre
Bug 550704 - js/src/config/check-sync-dirs.py doesn't check file contents. r=ted.mielczarek a-1.9.2.3=dveditz.
js/src/config/check-sync-dirs.py
--- a/js/src/config/check-sync-dirs.py
+++ b/js/src/config/check-sync-dirs.py
@@ -66,17 +66,17 @@ def check(copy, original, ignore):
     for (dirpath, dirnames, filenames) in os.walk('.'):
         exceptions = read_exceptions(join(dirpath, 'check-sync-exceptions'))
         for filename in filenames:
             if (filename in exceptions) or fnmatch_any(filename, ignore):
                 continue
             relative_name = join(dirpath, filename)
             original_name = join(original, relative_name)
             if (os.path.exists(original_name)
-                and filecmp.cmp(relative_name, original_name)):
+                and filecmp.cmp(relative_name, original_name, False)):
                 continue
             report(copy, original, relative_name)
 
 differences_found = False
 
 # Print an error message for DIFFERING, which was found to differ
 # between COPY and ORIGINAL.  Set the global variable differences_found.
 def report(copy, original, differing):