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 a/meta/cla
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.
> +
> 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),
>> +stderr=subpro
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
--