libopkg: allow passing common package state flags to pkg_hash_add_from_file()
authorJo-Philipp Wich <jo@mein.io>
Wed, 15 Feb 2017 23:24:29 +0000 (00:24 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 16 Feb 2017 16:02:30 +0000 (17:02 +0100)
commita65b6cb58937885c115059aa571c2b3a57d90888
tree00161a94b970208ce32255afc4a0b66dd2990406
parentd79ee5c52f301aaa721f9061daf2c1d0c11e5615
libopkg: allow passing common package state flags to pkg_hash_add_from_file()

Add a new parameter to pkg_hash_add_from_file() for passing package state
flags that shall be applied to all pkg_t instances parsed from the given
file and use it to mark all packages loaded from local status files with
the SF_NEED_DETAIL flag.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libopkg/pkg_hash.c
libopkg/pkg_hash.h