From 8ae4984c2c8009e7a08e2a76b1762c2837ad4f64 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Tue, 10 Nov 2015 12:37:23 -0800 Subject: [PATCH] Create reproducible NOTICE collections Sort the lists of notice files instead of relying on the filesystem ordering returned by os.walk Bug: 23972440 Change-Id: Id32be9ce8e540244ad9d67b6fc7883fc2963fe5c --- tools/generate-notice-files.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/tools/generate-notice-files.py b/tools/generate-notice-files.py index 4571b70df..5b13bf53d 100755 --- a/tools/generate-notice-files.py +++ b/tools/generate-notice-files.py @@ -99,7 +99,7 @@ def combine_notice_files_html(file_hash, input_dir, output_filename): # most browsers, but href's to table row ids do) id_table = {} id_count = 0 - for value in file_hash.values(): + for value in file_hash: for filename in value: id_table[filename] = id_count id_count += 1 @@ -116,7 +116,7 @@ def combine_notice_files_html(file_hash, input_dir, output_filename): print >> output_file, "