saltstack/salt — pull request #6208 by terminalmage (2013-07-17 17:36:30+00:00)
Title: Fix caching of 0-byte files

For some reason there was a check to see that the destination for the
cached file exists before writing an empty file. This prevented a 0-byte
file from overwriting a previously non-empty file in the cachedir. This
commit removes that check for the cache file's existence, allowing it to
be overwritten.

Fixes #6200.