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)
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

index 937439e021c789b2d2ee65f1cf1865694777ecd1..21108b395316aa1f2c9ef9c1591c45c5457eb3df 100644 (file)
@@ -113,7 +113,7 @@ struct abstract_pkg {
        abstract_pkg_vec_t *provided_by;
        abstract_pkg_vec_t *replaced_by;
 
-       int dependencies_checked:1;
+       int dependencies_checked:2;
        pkg_state_status_t state_status:4;
        pkg_state_flag_t state_flag:11;
 };