Changeset 4452
- Timestamp:
- 05/27/08 13:19:58 (5 years ago)
- File:
-
- 1 edited
-
trunk/src/target/opkg/tests/libopkg_test.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/target/opkg/tests/libopkg_test.c
r4443 r4452 4 4 5 5 opkg_package_t *find_pkg = NULL; 6 7 char *errors[8] = { 8 "No Error", 9 "Unknown Eror", 10 "Download failed", 11 "Dependancies failed", 12 "Package already installed", 13 "Package not available", 14 "Package not found", 15 "Package not installed" 16 }; 6 17 7 18 void … … 81 92 82 93 err = opkg_update_package_lists (opkg, progress_callback, "Updating..."); 83 printf ("\nopkg_update_package_lists returned %d \n", err);94 printf ("\nopkg_update_package_lists returned %d (%s)\n", err, errors[err]); 84 95 85 96 opkg_list_packages (opkg, package_list_callback, NULL); … … 103 114 104 115 err = opkg_install_package (opkg, "aspell", progress_callback, "Installing..."); 105 printf ("\nopkg_install_package returned %d \n", err);116 printf ("\nopkg_install_package returned %d (%s)\n", err, errors[err]); 106 117 107 118 err = opkg_upgrade_package (opkg, "aspell", progress_callback, "Upgrading..."); 108 printf ("\nopkg_upgrade_package returned %d \n", err);119 printf ("\nopkg_upgrade_package returned %d (%s)\n", err, errors[err]); 109 120 110 121 err = opkg_remove_package (opkg, "aspell", progress_callback, "Removing..."); 111 printf ("\nopkg_remove_package returned %d \n", err);122 printf ("\nopkg_remove_package returned %d (%s)\n", err, errors[err]); 112 123 113 124 printf ("Listing upgradable packages...\n"); … … 115 126 116 127 err = opkg_upgrade_all (opkg, progress_callback, "Upgrading all..."); 117 printf ("\nopkg_upgrade_all returned %d \n", err);128 printf ("\nopkg_upgrade_all returned %d (%s)\n", err, errors[err]); 118 129 119 130 opkg_free (opkg);
Note: See TracChangeset
for help on using the changeset viewer.
