And make the install command work. WTF?
[oweals/opkg-lede.git] / tests / libopkg_test.c
index 1d1f7b6215bed939ae8b9d1e3df9f8c10f88971e..073a9a7ca392483701244f8665ee854cf142ba30 100644 (file)
@@ -167,7 +167,7 @@ main (int argc, char **argv)
        printf ("Package \"%s\" not found!\n", find_pkg->name);
       break;
     case 'i':
-      err = opkg_install_package (argv[1], progress_callback, "Installing...");
+      err = opkg_install_package (argv[2], progress_callback, "Installing...");
       printf ("\nopkg_install_package returned %d (%s)\n", err, errors[err]);
       break;