From 25cf832e85638918d7d20a44bf187b479353732c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 16 Feb 2017 12:12:04 +0100 Subject: [PATCH] libopkg: flag package with SF_NEED_DETAIL in pkg_init_from_file() Flag the package loaded from file as SF_NEED_DETAIL to properly fetch and resolve dependencies. Signed-off-by: Jo-Philipp Wich --- libopkg/pkg.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libopkg/pkg.c b/libopkg/pkg.c index 023cf75..a76e152 100644 --- a/libopkg/pkg.c +++ b/libopkg/pkg.c @@ -346,6 +346,11 @@ int pkg_init_from_file(pkg_t * pkg, const char *filename) pkg_init(pkg); + if (!(pkg->state_flag & SF_NEED_DETAIL)) { + opkg_msg(DEBUG, "applying abpkg flag to %s\n", filename); + pkg->state_flag |= SF_NEED_DETAIL; + } + pkg_set_string(pkg, PKG_LOCAL_FILENAME, filename); tmp = xstrdup(filename); -- 2.30.2