summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2015-10-15 14:19:15 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-24 12:17:12 +0100
commit3abdd2bf886e4b3bc7dd957c77a7745498386161 (patch)
tree3e5d815438ed40ceeb52c68633dce8c18d139562 /meta
parent2c94853e4c8e92ac5fe4af7b25e2ce8853a4025b (diff)
downloadopenembedded-core-3abdd2bf886e4b3bc7dd957c77a7745498386161.tar.gz
openembedded-core-3abdd2bf886e4b3bc7dd957c77a7745498386161.tar.bz2
openembedded-core-3abdd2bf886e4b3bc7dd957c77a7745498386161.zip
sign_rpm.bbclass: be more verbose in case of error
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/sign_rpm.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/sign_rpm.bbclass b/meta/classes/sign_rpm.bbclass
index 23aea42ba3..39f877a23c 100644
--- a/meta/classes/sign_rpm.bbclass
+++ b/meta/classes/sign_rpm.bbclass
@@ -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