Updated Branches: refs/heads/FLUME-1787 3c9e8f8c2 -> 2e227db06
Only print output of git apply if there is output Project: http://git-wip-us.apache.org/repos/asf/flume/repo Commit: http://git-wip-us.apache.org/repos/asf/flume/commit/2e227db0 Tree: http://git-wip-us.apache.org/repos/asf/flume/tree/2e227db0 Diff: http://git-wip-us.apache.org/repos/asf/flume/diff/2e227db0 Branch: refs/heads/FLUME-1787 Commit: 2e227db06a6e7883e3eaf30cf2496dbf0711fa8b Parents: 3c9e8f8 Author: Brock Noland <[email protected]> Authored: Thu Dec 20 13:22:13 2012 -0600 Committer: Brock Noland <[email protected]> Committed: Thu Dec 20 13:22:13 2012 -0600 ---------------------------------------------------------------------- dev-support/test-patch.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flume/blob/2e227db0/dev-support/test-patch.py ---------------------------------------------------------------------- diff --git a/dev-support/test-patch.py b/dev-support/test-patch.py index f0fa0d2..819f4a0 100755 --- a/dev-support/test-patch.py +++ b/dev-support/test-patch.py @@ -123,7 +123,8 @@ def git_apply(result, cmd, patch_file, strip, output_dir): with open(output_file) as fh: output = fh.read() if rc == 0: - print output + if output: + print output else: result.fatal("failed to apply patch (exit code %d):\n%s\n" % (rc, output))
