Skip to content
Commit fd568969 authored by Shruthi Ravichandran's avatar Shruthi Ravichandran Committed by Steve Sakoman
Browse files

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: default avatarShruthi Ravichandran <shruthi.ravichandran@ni.com>
Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f2167ae8)
Signed-off-by: default avatarSteve Sakoman <steve@sakoman.com>
parent 4eb53b33
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment