libopkg: fix removal of packages
authorDaniel Golle <daniel@makrotopia.org>
Mon, 2 Nov 2020 20:35:50 +0000 (20:35 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 2 Nov 2020 20:35:50 +0000 (20:35 +0000)
commit11ee06ea67ebe6a6f11323ad5a6d3c77071488cd
tree08a27aabe88ee817006569094b5c8a4ffb21dd20
parentea5a767601fbb97738da021626108c5029fecc57
libopkg: fix removal of packages

The 'dependencies_checked' field in struct abstract_pkg is also used
when removing packages, and in that case it is set to '2'.
Make the field wide enough to be able to contain that value.

Fixes: 532f92d ("libopkg: tighten length of fields in struct abstract_pkg")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libopkg/pkg.h