opkg_verify_integrity: better logging and error conditions
authorBaptiste Jonglez <git@bitsofnetworks.org>
Mon, 24 Aug 2020 23:00:32 +0000 (01:00 +0200)
committerPaul Spooren <mail@aparcar.org>
Tue, 24 Nov 2020 22:07:51 +0000 (12:07 -1000)
commit61b3c62d1c0dbbdcee2d67f56fb112f0af80527a
treedfe21b169de71266711768c60a1b2e23a32ec6b4
parentf73d42f0e951e71eae12ecac29b75b05ac543f5e
opkg_verify_integrity: better logging and error conditions

The function now always returns an error if size/checksum don't match: we
let the caller decide what to do with the result.

In addition, most of the logging is also moved to the caller.  We just
keep logging for unexpected errors and a bit of debug at loglevel INFO.

Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org>
libopkg/opkg_download.c
libopkg/opkg_install.c