summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/recipetool/append.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/lib/recipetool/append.py b/scripts/lib/recipetool/append.py
index 28015c683d..ed4ce4a805 100644
--- a/scripts/lib/recipetool/append.py
+++ b/scripts/lib/recipetool/append.py
@@ -262,10 +262,12 @@ def appendfile(args):
262 262
263 stdout = '' 263 stdout = ''
264 try: 264 try:
265 (stdout, _) = bb.process.run('LANG=C file -E -b %s' % args.newfile, shell=True) 265 (stdout, _) = bb.process.run('LANG=C file -b %s' % args.newfile, shell=True)
266 if 'cannot open' in stdout:
267 raise bb.process.ExecutionError(stdout)
266 except bb.process.ExecutionError as err: 268 except bb.process.ExecutionError as err:
267 logger.debug('file command returned error: %s' % err) 269 logger.debug('file command returned error: %s' % err)
268 pass 270 stdout = ''
269 if stdout: 271 if stdout:
270 logger.debug('file command output: %s' % stdout.rstrip()) 272 logger.debug('file command output: %s' % stdout.rstrip())
271 if ('executable' in stdout and not 'shell script' in stdout) or 'shared object' in stdout: 273 if ('executable' in stdout and not 'shell script' in stdout) or 'shared object' in stdout: