libopkg: line-wrap descriptions only on interactive terminals
authorJo-Philipp Wich <jo@mein.io>
Fri, 10 Feb 2017 09:14:02 +0000 (10:14 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 10 Feb 2017 09:14:02 +0000 (10:14 +0100)
commit9d0d61cf8c85b815b90a3a3ae2e1da2b5dbf214c
tree377d175d476b265ca48f08e58877bcd03ceb5384
parent386dbd35e6f5d9c272c68faa0247ffce6cc85b4c
libopkg: line-wrap descriptions only on interactive terminals

Various programs call opkg and extract information from its list and info
commands. To simplify parsing the output, do not line-wrap long description
lines if opkg is not talking to a tty.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libopkg/pkg_parse.c