summaryrefslogtreecommitdiffstats
path: root/scripts/lib/scriptutils.py
diff options
context:
space:
mode:
authorShruthi Ravichandran <shruthi.ravichandran@ni.com>2022-07-21 00:19:49 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-08 16:23:37 +0100
commitf6bc8dfadb6ccb961f26c43bc30dfce581bbacd7 (patch)
tree7e2021c8ac9c340af15e7df99478849ffb3b8ffc /scripts/lib/scriptutils.py
parent03e778a6361db971f348c6da646fa13778fdafe4 (diff)
downloadpoky-f6bc8dfadb6ccb961f26c43bc30dfce581bbacd7.tar.gz
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(). (From OE-Core rev: fd5689696731fefa0d035fde86f27a0135dc31f1) Signed-off-by: Shruthi Ravichandran <shruthi.ravichandran@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit f2167ae80258253eb47a5b148546b265320284cc) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/scriptutils.py')
0 files changed, 0 insertions, 0 deletions