]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
package_manager/ipk: do not pipe stderr to stdout
authorShruthi Ravichandran <shruthi.ravichandran@ni.com>
Thu, 21 Jul 2022 00:19:49 +0000 (00:19 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Jul 2022 21:57:54 +0000 (22:57 +0100)
commitf2167ae80258253eb47a5b148546b265320284cc
tree167f85110c7b0ff31057d2620ca7705316800065
parent586b6239252ecf2711930b60f7f0f617e38ac737
package_manager/ipk: do not pipe stderr to stdout

Some opkg commands print an error during cleanup when the tmp_dir
does not exist and an attempt is made to delete it. The error messages
are harmless and the opkg commands eventually succeed.
When these commands are run and stderr is piped to stdout, the error
messages may clobber the stdout and cause unexpected results while
parsing the output of the command. Therefore, when parsing the output
of a command, do not pipe stderr to stdout. Instead, capture stderr
and stdout separately, and upon success, send stderr to bb.note().

Signed-off-by: Shruthi Ravichandran <shruthi.ravichandran@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/package_manager/ipk/__init__.py