From: Jo-Philipp Wich Date: Wed, 15 Feb 2017 23:18:25 +0000 (+0100) Subject: libopkg: do not clobber package flags during parsing X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4d7c0d82dbcd0c98a1f1193a1a3c67b5047705e9;p=project%2Fopkg-lede.git 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 --- 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); }