2009-12-21 03:28:11 +00:00
|
|
|
--- a/src/opkg-cl.c
|
|
|
|
+++ b/src/opkg-cl.c
|
2009-12-21 15:09:08 +00:00
|
|
|
@@ -263,7 +263,7 @@
|
|
|
|
int
|
|
|
|
main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
- int opts;
|
|
|
|
+ int opts, err = -1;
|
|
|
|
char *cmd_name;
|
|
|
|
opkg_cmd_t *cmd;
|
|
|
|
int nocheckfordirorfile = 0;
|
|
|
|
@@ -327,15 +327,8 @@
|
|
|
|
usage();
|
|
|
|
}
|
|
|
|
|
|
|
|
- if (opkg_cmd_exec(cmd, argc - opts, (const char **) (argv + opts)))
|
|
|
|
- goto err2;
|
|
|
|
+ err = opkg_cmd_exec(cmd, argc - opts, (const char **) (argv + opts));
|
|
|
|
|
|
|
|
- print_error_list();
|
|
|
|
- free_error_list();
|
|
|
|
-
|
|
|
|
- return 0;
|
|
|
|
-
|
|
|
|
-err2:
|
|
|
|
#ifdef HAVE_CURL
|
|
|
|
opkg_curl_cleanup();
|
|
|
|
#endif
|
|
|
|
@@ -346,5 +339,5 @@
|
2009-12-21 03:28:11 +00:00
|
|
|
print_error_list();
|
|
|
|
free_error_list();
|
|
|
|
|
2009-12-21 15:09:08 +00:00
|
|
|
- return -1;
|
|
|
|
+ return err;
|
|
|
|
}
|