libopkg: don't print unresolved dependencies twice
authorJo-Philipp Wich <jo@mein.io>
Tue, 30 Oct 2018 09:25:11 +0000 (10:25 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 30 Oct 2018 09:42:47 +0000 (09:42 +0000)
commite3d73300bd7bd6d02d00e862bccc66e27449a0c9
tree62f29fd1260f8bc6503af66d99ac732a5f49ddfd
parent3b417b9f41b4ceb5912d82f867dd5534e5675b5c
libopkg: don't print unresolved dependencies twice

Sometimes opkg ends up reporting unresolved dependencies multiple
times while also missing a newline between consecutive error lines,
making the error message output looking garbled and confusing.

Add some logic to skip repeated unresolved dependencies and ensure
that message lines are properly terminated by newlines.

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