]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
package_ipk: Improve failure debug output
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 21 Jan 2017 14:11:52 +0000 (14:11 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 22 Jan 2017 09:05:39 +0000 (09:05 +0000)
commit596c9eff21ef1197cc72d1eb5e46308f7a10f874
tree4fdf79c1940b4a0d4e130acabe991517bd15d11f
parentfdb52ade904e2d6c379f7f6859eef7dba26874b6
package_ipk: Improve failure debug output

Currently if the dpkg-deb command fails you see an error message like this:

ERROR: nss-3.27.1-r0 do_package_write_ipk: opkg-build execution failed
ERROR: nss-3.27.1-r0 do_package_write_ipk: Function failed: do_package_ipk

which is pretty much useless. If we use subprocess.check_output, we see a
traceback and then:

Exception: subprocess.CalledProcessError: Command '<cmd>' returned non-zero exit status 1

Subprocess output:
<output>

which is much easier to debug from.

(From OE-Core rev: 64c8366a805e9cf0168ea2331c50c8d6a70c6dc4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package_ipk.bbclass