Clean up temp files if there is no cache result.

Summary:
We create a temp file to uncache files to. However, if we miss the cache entirely, there
is no hit in the cache at all, we leave a zero-length file in the temp directory. Let's
clean that up to avoid cluttering the disk.

Test Plan:
buck test --all
Manually inspect the tmp dir for zero-length zip files
1 file changed
tree: 2cc2c294c631ece09ce2d32b780133a4e368a7a6
  1. .idea/
  2. bin/
  3. config/
  4. docs/
  5. lib/
  6. plugin/
  7. pmd/
  8. scripts/
  9. src/
  10. test/
  11. testdata/
  12. third-party/
  13. .buckconfig
  14. .classpath
  15. .gitignore
  16. .project
  17. buck.iml
  18. build.xml
  19. DEFS
  20. LICENSE
  21. README.md
README.md

Buck

Buck is an Android build tool. To see what Buck can do for you, check out the documentation at http://facebook.github.io/buck/.

Installation

To build Buck, run the following:

git clone git@github.com:facebook/buck.git
cd buck
ant
./bin/buck --help

License

Apache License 2.0