Make the "update" command work. Previously, you had to type "updd..."
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Wed, 9 Dec 2009 06:05:29 +0000 (06:05 +0000)
committergraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Wed, 9 Dec 2009 06:05:29 +0000 (06:05 +0000)
For a test program, it can't have seen much testing.

git-svn-id: http://opkg.googlecode.com/svn/trunk@475 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

tests/libopkg_test.c

index 70a924c..1d1f7b6 100644 (file)
@@ -172,7 +172,7 @@ main (int argc, char **argv)
       break;
 
     case 'u':
       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]);
       {
         err = opkg_update_package_lists (progress_callback, "Updating...");
         printf ("\nopkg_update_package_lists returned %d (%s)\n", err, errors[err]);