summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle2020-11-02 20:35:50 +0000
committerDaniel Golle2020-11-02 20:35:50 +0000
commit11ee06ea67ebe6a6f11323ad5a6d3c77071488cd (patch)
tree08a27aabe88ee817006569094b5c8a4ffb21dd20
parentea5a767601fbb97738da021626108c5029fecc57 (diff)
downloadopkg-lede-11ee06ea67ebe6a6f11323ad5a6d3c77071488cd.tar.gz
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>
-rw-r--r--libopkg/pkg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopkg/pkg.h b/libopkg/pkg.h
index 937439e..21108b3 100644
--- a/libopkg/pkg.h
+++ b/libopkg/pkg.h
@@ -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;
};