libopkg: support passing default state flags in pkg_hash_load_feeds()
[oweals/opkg-lede.git] / libopkg / opkg.c
index 9e278cd7af621a1b47eb90fc73a96f146c2aa8e4..dc1148386ba18e63c80a531dd843e0d92cd6cd02 100644 (file)
@@ -122,7 +122,7 @@ int opkg_new()
        if (opkg_conf_load())
                goto err0;
 
-       if (pkg_hash_load_feeds())
+       if (pkg_hash_load_feeds(0))
                goto err1;
 
        if (pkg_hash_load_status_files())
@@ -749,7 +749,7 @@ pkg_t *opkg_find_package(const char *name, const char *ver, const char *arch,
 
                /* check architecture */
                if (arch) {
-                       if (sstrcmp(pkg_get_string(pkg, PKG_ARCHITECTURE), arch))
+                       if (sstrcmp(pkg_get_architecture(pkg), arch))
                                continue;
                }