mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 21:22:48 +02:00
[package] opkg: write error messages to stdout
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24133 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
6a226cb195
commit
8b815e9edf
@ -19,7 +19,7 @@
|
||||
}
|
||||
|
||||
if (opkg_configure_packages(NULL))
|
||||
@@ -1182,7 +1170,7 @@ opkg_print_architecture_cmd(int argc, ch
|
||||
@@ -1215,7 +1203,7 @@ opkg_print_architecture_cmd(int argc, ch
|
||||
array for easier maintenance */
|
||||
static opkg_cmd_t cmds[] = {
|
||||
{"update", 0, (opkg_cmd_fun_t)opkg_update_cmd, PFM_DESCRIPTION|PFM_SOURCE},
|
||||
@ -30,7 +30,7 @@
|
||||
{"list-installed", 0, (opkg_cmd_fun_t)opkg_list_installed_cmd, PFM_SOURCE},
|
||||
--- a/src/opkg-cl.c
|
||||
+++ b/src/opkg-cl.c
|
||||
@@ -217,7 +217,7 @@ usage()
|
||||
@@ -214,7 +214,7 @@ usage()
|
||||
|
||||
printf("\nPackage Manipulation:\n");
|
||||
printf("\tupdate Update list of available packages\n");
|
||||
|
15
package/opkg/patches/014-errors-to-stderr.patch
Normal file
15
package/opkg/patches/014-errors-to-stderr.patch
Normal file
@ -0,0 +1,15 @@
|
||||
--- a/libopkg/opkg_message.c
|
||||
+++ b/libopkg/opkg_message.c
|
||||
@@ -64,10 +64,10 @@ print_error_list(void)
|
||||
struct errlist *err = error_list_head;
|
||||
|
||||
if (err) {
|
||||
- printf("Collected errors:\n");
|
||||
+ fprintf(stderr, "Collected errors:\n");
|
||||
/* Here we print the errors collected and free the list */
|
||||
while (err != NULL) {
|
||||
- printf(" * %s", err->errmsg);
|
||||
+ fprintf(stderr, " * %s", err->errmsg);
|
||||
err = err->next;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user