summaryrefslogtreecommitdiff
path: root/classes/patch.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/patch.bbclass')
-rw-r--r--classes/patch.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/patch.bbclass b/classes/patch.bbclass
index 7a5dcac57a..12657fa0f6 100644
--- a/classes/patch.bbclass
+++ b/classes/patch.bbclass
@@ -377,7 +377,7 @@ def patch_init(d):
os.environ['TERMWINDOWTITLE'] = "Bitbake: Please fix patch rejects manually"
os.environ['TERMRCFILE'] = rcfile
rc = os.system(bb.data.getVar('TERMCMDRUN', d, 1))
- if os.WIFEXITED(rc) and os.WEXITSTATUS(rc) == 127:
+ if os.WIFEXITED(rc) and os.WEXITSTATUS(rc) != 0:
bb.msg.fatal(bb.msg.domain.Build, ("Cannot proceed with manual patch resolution - '%s' not found. " \
+ "Check TERMCMDRUN variable.") % bb.data.getVar('TERMCMDRUN', d, 1))