commit | 4e6af545dba4eb518bbdf1fd587c065621bd3a62 | [log] [tgz] |
---|---|---|
author | Steve Fung <stevefung@google.com> | Wed May 04 17:39:53 2016 -0700 |
committer | Steve Fung <stevefung@google.com> | Thu May 12 20:13:12 2016 +0000 |
tree | 74293d046adf4d47ad329d5e840ee47dcdc06420 | |
parent | 0a1e8462677c5aafcb0c867b398691c9d63855df [diff] |
Add script to clean up orphaned .pyc files. Whenever we refactor file names, it often leaves behind a .pyc file. These files still get discovered when running commands and unit tests, and can lead to accidental failures. Also add this script to run on PREUPLOAD. Since repo currently does not provide a method of running hooks on a sync, this is the best we can do at the moment. Bug: 28053765 Test: `./tools/cleanup.py` lists my orphaned .pyc files. Does not delete them unless inputting 'y' at the prompt. Test: `./tools/cleanup.py --quiet --yes` automatically cleans up all orphaned .pyc files. Test: Orphaned .pyc files are cleaned up when uploading this CL. Change-Id: I5c1cada450b448938d285c5802499a3a890fe215
This is the bdk which is used to build Brillo.
bdk
tool.