bandaid icon indicating copy to clipboard operation
bandaid copied to clipboard

Check existence of patch(1)

Open arnested opened this issue 11 years ago • 2 comments

In bandaid.drush.inc we should check whether the patch(1) command actually exists.

I just discovered a CentOS server that came without the patch command installed. The error message from Bandaid was just "Could not apply patch" (which is of course not false but I guess we could be more helpful).

arnested avatar Nov 17 '14 10:11 arnested

Suggestions on how to do that?

xendk avatar Jan 28 '15 07:01 xendk

Hmmm... Getting the cause of a failed patch doesn't look easy.

We could change the last part of _bandaid_attempt_patch() and print $output to the screen if patching failed. That could provide some kind of hint no matter what caused an error.

arnested avatar Jan 28 '15 20:01 arnested