]> code.ossystems Code Review - openembedded-core.git/commit
package_manager.py: better error handling in opkg's package listing
authorPatrick Ohly <patrick.ohly@intel.com>
Mon, 4 Apr 2016 13:41:42 +0000 (15:41 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 Apr 2016 08:55:47 +0000 (09:55 +0100)
commit7d9e915224a9bc451fddfbbfad533d9b06e9987d
treef3ca9ac5d4cf09bf1b6da863a5dfdb767eac9be1
parent2a8d0df47c9d28f8ca7285861dee7a178273eae4
package_manager.py: better error handling in opkg's package listing

opkg does not return a non-zero exit code even if it found
errors. When that happens, parsing the output leads to strange
follow-up errors.

To avoid this we need to check explicitly for non-empty
stderr. Reporting only that on a failure also leads to shorter error
messages (stdout may be very large).

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/package_manager.py