From bc13c20bf3bf794192e7403d8c10bdbff5310dd6 Mon Sep 17 00:00:00 2001 From: Stacey Sheldon Date: Sun, 14 Oct 2012 13:32:39 -0400 Subject: [PATCH] uavohash: normalize line endings before computing hash Line endings in the UAVO XML files differ from file to file and this results in different SHA1 sums being computed on Windows vs. Linux/Mac. This normalizes the line endings to LF (python native) while processing the XML files. --- make/scripts/version-info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/scripts/version-info.py b/make/scripts/version-info.py index b6d7fd4c0..6fe6b7d9e 100644 --- a/make/scripts/version-info.py +++ b/make/scripts/version-info.py @@ -268,7 +268,7 @@ def GetHashofDirs(directory, verbose=0, raw=0): print 'Hashing', names filepath = os.path.join(root,names) try: - f1 = open(filepath, 'rb') + f1 = open(filepath, 'rU') except: # You can't open the file for some reason f1.close()