Make the "update" command work. Previously, you had to type "updd..."
[oweals/opkg-lede.git] / tests / libopkg_test.c
index 70a924cb739615a6b6bfa4454e0d8bd8f3231566..1d1f7b6215bed939ae8b9d1e3df9f8c10f88971e 100644 (file)
@@ -172,7 +172,7 @@ main (int argc, char **argv)
       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]);