]> code.ossystems Code Review - openembedded-core.git/commitdiff
sign_rpm.bbclass: be more verbose in case of error
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 15 Oct 2015 11:19:15 +0000 (14:19 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Oct 2015 11:17:12 +0000 (12:17 +0100)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
meta/classes/sign_rpm.bbclass

index 23aea42ba32ad4f4259d3ba746a7cd973c22ae74..39f877a23cdd5c08a18b426351a622793626f846 100644 (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