libopkg: remove GPG support
[oweals/opkg-lede.git] / libopkg / opkg.c
index 9e278cd7af621a1b47eb90fc73a96f146c2aa8e4..99e8c6de08d4d3308341b3fec1f4ea1cd5a6c64b 100644 (file)
@@ -15,8 +15,6 @@
    General Public License for more details.
  */
 
-#include "config.h"
-
 #include <stdio.h>
 #include <unistd.h>
 #include <fnmatch.h>
@@ -122,7 +120,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())
@@ -593,7 +591,7 @@ opkg_update_package_lists(opkg_progress_callback_t progress_callback,
                }
                free(url);
 
-#if defined(HAVE_GPGME) || defined(HAVE_OPENSSL) || defined(HAVE_USIGN)
+#if defined(HAVE_OPENSSL) || defined(HAVE_USIGN)
                if (conf->check_signature) {
                        char *sig_file_name;
                        /* download detached signitures to verify the package lists */
@@ -749,7 +747,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;
                }