[OE-core] [PATCH] package_deb.bbclass: report error during creation
Burton, Ross
ross.burton at intel.com
Mon Dec 17 17:11:31 UTC 2018
On Sat, 15 Dec 2018 at 12:59, Jens Rehsack <sno at netbsd.org> wrote:
> + try:
> + subprocess.check_output("PATH=\"%s\" dpkg-deb -b %s %s" % (localdata.getVar("PATH"), root, pkgoutdir),
> + stderr=subprocess.STDOUT,
So stderr is redirected to stdout.
> + except subprocess.CalledProcessError as cpe:
> + bb.note("%s" % cpe)
> + bb.note("%s" % cpe.stdout)
> + bb.note("%s" % cpe.stderr)
So why display both?
Do this as one bb.error and you won't need to re-raise as it will fail.
Ross
More information about the Openembedded-core
mailing list