Re: [OE-core] [PATCH] package_deb.bbclass: report error during creation

2018-12-18 Thread Burton, Ross
On Tue, 18 Dec 2018 at 12:58, Jens Rehsack wrote: > Do this as one bb.error > > Sure > and you won't need to re-raise as it will fail. > So neither raise nor pass - just print? bb.fatal will show the message and raise an exception itself, or bb.error()/return. Either works. Ross --

Re: [OE-core] [PATCH] package_deb.bbclass: report error during creation

2018-12-18 Thread Jens Rehsack
> Am 17.12.2018 um 18:11 schrieb Burton, Ross : > > On Sat, 15 Dec 2018 at 12:59, Jens Rehsack wrote: >> +try: >> +subprocess.check_output("PATH=\"%s\" dpkg-deb -b %s %s" % >> (localdata.getVar("PATH"), root, pkgoutdir), >> +

Re: [OE-core] [PATCH] package_deb.bbclass: report error during creation

2018-12-17 Thread Burton, Ross
On Sat, 15 Dec 2018 at 12:59, Jens Rehsack 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. > +

[OE-core] [PATCH] package_deb.bbclass: report error during creation

2018-12-15 Thread Jens Rehsack
Default error message -- when .deb creation fails -- is just the command and error code. With this piece, the error message is known, too. Signed-off-by: Jens Rehsack --- meta/classes/package_deb.bbclass | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git