There is no need to use a buffer at all.
[oweals/opkg-lede.git] / libopkg / libopkg.c
index c73c4a3358ed902b1a25279f13a41356442cf8bb..312198407b0bc4475594c31179b0290a93f04e42 100644 (file)
@@ -1,6 +1,6 @@
 /* opkglib.c - the opkg package management system
 
-   Florina Boor
+   Florian Boor
 
    Copyright (C) 2003 kernel concepts
 
@@ -65,6 +65,7 @@ opkg_op (int argc, char *argv[])
              !strcmp(cmd_name,"compare_versions") ||
              !strcmp(cmd_name,"compare-versions") ||
              !strcmp(cmd_name,"list_installed") ||
+             !strcmp(cmd_name,"list-installed") ||
              !strcmp(cmd_name,"status") )
            args.noreadfeedsfile = 1;
 
@@ -96,6 +97,9 @@ opkg_op (int argc, char *argv[])
 
        err = opkg_cmd_exec (cmd, &opkg_conf, argc - optind, (const char **) (argv + optind), NULL);
 
+#ifdef HAVE_CURL
+       opkg_curl_cleanup();
+#endif
        opkg_conf_deinit (&opkg_conf);
 
        return err;