From 4d7c0d82dbcd0c98a1f1193a1a3c67b5047705e9 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 16 Feb 2017 00:18:25 +0100 Subject: [PATCH] libopkg: do not clobber package flags during parsing When parsing "Status:" lines from package control or list files, do not overwrite previously set flags in the package structure. Signed-off-by: Jo-Philipp Wich --- libopkg/pkg_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libopkg/pkg_parse.c b/libopkg/pkg_parse.c index eca0b02..d8b7b52 100644 --- a/libopkg/pkg_parse.c +++ b/libopkg/pkg_parse.c @@ -42,7 +42,7 @@ static void parse_status(pkg_t * pkg, const char *sstr) } pkg->state_want = pkg_state_want_from_str(sw_str); - pkg->state_flag = pkg_state_flag_from_str(sf_str); + pkg->state_flag |= pkg_state_flag_from_str(sf_str); pkg->state_status = pkg_state_status_from_str(ss_str); } -- 2.30.2