opkg_verify_integrity: better logging and error conditions
authorBaptiste Jonglez <[email protected]>
Mon, 24 Aug 2020 23:00:32 +0000 (01:00 +0200)
committerBaptiste Jonglez <[email protected]>
Sun, 31 Jan 2021 09:56:20 +0000 (10:56 +0100)
commit7cad0c0bda62dc2a151a5e52aa237eda40c76060
tree97df3f6d209ba5473629fd47b618b4719c9a92f0
parent14d6480e45e5776e4c2761a00540f593a35c684b
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 <[email protected]>
(cherry picked from commit 61b3c62d1c0dbbdcee2d67f56fb112f0af80527a)
libopkg/opkg_download.c
libopkg/opkg_install.c