> Am 17.12.2018 um 18:11 schrieb Burton, Ross <[email protected]>:
> 
> On Sat, 15 Dec 2018 at 12:59, Jens Rehsack <[email protected]> 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?

Better safe than sorry :P

> 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?

> Ross


Cheers
--
Jens Rehsack - [email protected]

Attachment: signature.asc
Description: Message signed with OpenPGP

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to