projects
/
oweals
/
opkg-lede.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7b08ae
)
libopkg: flag package with SF_NEED_DETAIL in pkg_init_from_file()
author
Jo-Philipp Wich
<jo@mein.io>
Thu, 16 Feb 2017 11:12:04 +0000
(12:12 +0100)
committer
Jo-Philipp Wich
<jo@mein.io>
Thu, 16 Feb 2017 16:02:30 +0000
(17:02 +0100)
Flag the package loaded from file as SF_NEED_DETAIL to properly fetch and
resolve dependencies.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libopkg/pkg.c
patch
|
blob
|
history
diff --git
a/libopkg/pkg.c
b/libopkg/pkg.c
index 023cf75c466797960dfe9483fc2dcff1e702f486..a76e152d4420c49153eac0eaff2316cc055a3ad6 100644
(file)
--- 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);