str_list_push: remove unused function
[oweals/opkg-lede.git] / src / opkg-cl.c
index e0a4b2363316af7b01a7a735600524c2166d87b8..e73e04247708cea481814a53763f70427268fb52 100644 (file)
    opkg command line frontend using libopkg
 */
 
-#include "config.h"
-
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <getopt.h>
+#include <fnmatch.h>
 
 #include "opkg_conf.h"
 #include "opkg_cmd.h"
@@ -387,7 +387,8 @@ int main(int argc, char *argv[])
 
        cmd_name = argv[opts++];
 
-       if (!strcmp(cmd_name, "print-architecture") ||
+       if (!strcmp(cmd_name, "install") ||
+           !strcmp(cmd_name, "print-architecture") ||
            !strcmp(cmd_name, "print_architecture") ||
            !strcmp(cmd_name, "print-installation-architecture") ||
            !strcmp(cmd_name, "print_installation_architecture"))
@@ -395,6 +396,7 @@ int main(int argc, char *argv[])
 
        if (!strcmp(cmd_name, "flag") ||
            !strcmp(cmd_name, "configure") ||
+           !strcmp(cmd_name, "install") ||
            !strcmp(cmd_name, "remove") ||
            !strcmp(cmd_name, "files") ||
            !strcmp(cmd_name, "search") ||
@@ -421,7 +423,7 @@ int main(int argc, char *argv[])
 
        if (!nocheckfordirorfile) {
                if (!noreadfeedsfile) {
-                       if (pkg_hash_load_feeds())
+                       if (pkg_hash_load_feeds(SF_NEED_DETAIL))
                                goto err1;
                }
 
@@ -438,9 +440,6 @@ int main(int argc, char *argv[])
 
        err = opkg_cmd_exec(cmd, argc - opts, (const char **)(argv + opts));
 
-#ifdef HAVE_CURL
-       opkg_curl_cleanup();
-#endif
 err1:
        opkg_conf_deinit();