| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Makes sure files have the right permissions. | 6 """Makes sure files have the right permissions. |
| 7 | 7 |
| 8 Some developers have broken SCM configurations that flip the executable | 8 Some developers have broken SCM configurations that flip the executable |
| 9 permission on for no good reason. Unix developers who run ls --color will then | 9 permission on for no good reason. Unix developers who run ls --color will then |
| 10 see .cc files in green and get confused. | 10 see .cc files in green and get confused. |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 # Case-insensitive, lower-case only. | 140 # Case-insensitive, lower-case only. |
| 141 NON_EXECUTABLE_PATHS = ( | 141 NON_EXECUTABLE_PATHS = ( |
| 142 'build/android/tests/symbolize/liba.so', | 142 'build/android/tests/symbolize/liba.so', |
| 143 'build/android/tests/symbolize/libb.so', | 143 'build/android/tests/symbolize/libb.so', |
| 144 'chrome/installer/mac/sign_app.sh.in', | 144 'chrome/installer/mac/sign_app.sh.in', |
| 145 'chrome/installer/mac/sign_versioned_dir.sh.in', | 145 'chrome/installer/mac/sign_versioned_dir.sh.in', |
| 146 'chrome/test/data/extensions/uitest/plugins/plugin32.so', | 146 'chrome/test/data/extensions/uitest/plugins/plugin32.so', |
| 147 'chrome/test/data/extensions/uitest/plugins/plugin64.so', | 147 'chrome/test/data/extensions/uitest/plugins/plugin64.so', |
| 148 'chrome/test/data/extensions/uitest/plugins_private/plugin32.so', | 148 'chrome/test/data/extensions/uitest/plugins_private/plugin32.so', |
| 149 'chrome/test/data/extensions/uitest/plugins_private/plugin64.so', | 149 'chrome/test/data/extensions/uitest/plugins_private/plugin64.so', |
| 150 'components/test/data/component_updater/ihfokbkgjpifnbbojhneepfflplebdkc/' | |
| 151 'ihfokbkgjpifnbbojhneepfflplebdkc_1/a_changing_binary_file', | |
| 152 'components/test/data/component_updater/ihfokbkgjpifnbbojhneepfflplebdkc/' | |
| 153 'ihfokbkgjpifnbbojhneepfflplebdkc_2/a_changing_binary_file', | |
| 154 'courgette/testdata/elf-32-1', | 150 'courgette/testdata/elf-32-1', |
| 155 'courgette/testdata/elf-32-2', | 151 'courgette/testdata/elf-32-2', |
| 156 'courgette/testdata/elf-64', | 152 'courgette/testdata/elf-64', |
| 157 ) | 153 ) |
| 158 | 154 |
| 159 # File names that are always whitelisted. (These are mostly autoconf spew.) | 155 # File names that are always whitelisted. (These are mostly autoconf spew.) |
| 160 # | 156 # |
| 161 # Case-sensitive. | 157 # Case-sensitive. |
| 162 IGNORED_FILENAMES = ( | 158 IGNORED_FILENAMES = ( |
| 163 'config.guess', | 159 'config.guess', |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 print '\nFAILED\n' | 467 print '\nFAILED\n' |
| 472 print '\n'.join('%s: %s' % (e['full_path'], e['error']) for e in errors) | 468 print '\n'.join('%s: %s' % (e['full_path'], e['error']) for e in errors) |
| 473 return 1 | 469 return 1 |
| 474 if not options.bare: | 470 if not options.bare: |
| 475 print '\nSUCCESS\n' | 471 print '\nSUCCESS\n' |
| 476 return 0 | 472 return 0 |
| 477 | 473 |
| 478 | 474 |
| 479 if '__main__' == __name__: | 475 if '__main__' == __name__: |
| 480 sys.exit(main()) | 476 sys.exit(main()) |
| OLD | NEW |