And make the install command work. WTF?
[oweals/opkg-lede.git] / tests / libopkg_test.c
index 70a924cb739615a6b6bfa4454e0d8bd8f3231566..073a9a7ca392483701244f8665ee854cf142ba30 100644 (file)
@@ -167,12 +167,12 @@ 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;
 
     case 'u':
-      if (argv[1][3] == 'd')
+      if (argv[1][2] == 'd')
       {
         err = opkg_update_package_lists (progress_callback, "Updating...");
         printf ("\nopkg_update_package_lists returned %d (%s)\n", err, errors[err]);