sign_rpm.bbclass: be more verbose in case of error

(From OE-Core rev: 3abdd2bf886e4b3bc7dd957c77a7745498386161)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Markus Lehtonen 2015-10-15 14:19:15 +03:00 committed by Richard Purdie
parent dbb9af6b0b
commit 48d60fc44a
1 changed files with 4 additions and 1 deletions

View File

@ -55,8 +55,11 @@ def rpmsign_wrapper(d, files, passphrase, gpg_name=None):
proc.expect(pexpect.EOF, timeout=900)
proc.close()
except pexpect.TIMEOUT as err:
bb.debug('rpmsign timeout: %s' % err)
bb.warn('rpmsign timeout: %s' % err)
proc.terminate()
else:
if os.WEXITSTATUS(proc.status) or not os.WIFEXITED(proc.status):
bb.warn('rpmsign failed: %s' % proc.before.strip())
return proc.exitstatus