From 7c48e3fca6faf9bfa1461392dbe18a58a797653d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 15 Feb 2017 23:47:53 +0100 Subject: [PATCH] libopkg: introduce SF_NEED_DETAIL flag Introduce a new pkt_t state_flag value SF_NEED_DETAIL which will be used to mark packages for which we require details. When parsing the feed lists, we'll only keep information about packages marked with SF_NEED_DETAIL and packages related to them through Provides, Suggests, Conflicts, Depends etc. Signed-off-by: Jo-Philipp Wich --- libopkg/pkg.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libopkg/pkg.h b/libopkg/pkg.h index eeb75e6..3237f83 100644 --- a/libopkg/pkg.h +++ b/libopkg/pkg.h @@ -60,6 +60,7 @@ enum pkg_state_flag { SF_MARKED = 64, /* temporary mark */ SF_FILELIST_CHANGED = 128, /* needs filelist written */ SF_USER = 256, + SF_NEED_DETAIL = 512, SF_LAST_STATE_FLAG }; typedef enum pkg_state_flag pkg_state_flag_t; @@ -144,7 +145,7 @@ struct pkg { pkg_src_t *src; pkg_dest_t *dest; pkg_state_want_t state_want:3; - pkg_state_flag_t state_flag:10; + pkg_state_flag_t state_flag:11; pkg_state_status_t state_status:4; abstract_pkg_t *parent; -- 2.30.2