summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/devshell.bbclass4
-rw-r--r--classes/patch.bbclass5
2 files changed, 8 insertions, 1 deletions
diff --git a/classes/devshell.bbclass b/classes/devshell.bbclass
index 06152ef8bc..35456b517b 100644
--- a/classes/devshell.bbclass
+++ b/classes/devshell.bbclass
@@ -6,6 +6,10 @@ do_devshell[nostamp] = "1"
devshell_do_devshell() {
export TERMWINDOWTITLE="Bitbake Developer Shell"
${TERMCMD}
+ if [ $? -ne 0 ]; then
+ echo "Fatal: '${TERMCMD}' not found. Check TERMCMD variable."
+ exit 1
+ fi
}
addtask devshell after do_patch
diff --git a/classes/patch.bbclass b/classes/patch.bbclass
index 84cca7f5a0..12657fa0f6 100644
--- a/classes/patch.bbclass
+++ b/classes/patch.bbclass
@@ -376,7 +376,10 @@ def patch_init(d):
os.environ['TERMWINDOWTITLE'] = "Bitbake: Please fix patch rejects manually"
os.environ['TERMRCFILE'] = rcfile
- os.system(bb.data.getVar('TERMCMDRUN', d, 1))
+ rc = os.system(bb.data.getVar('TERMCMDRUN', d, 1))
+ 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))
# Construct a new PatchSet after the user's changes, compare the
# sets, checking patches for modifications, and doing a remote