aboutsummaryrefslogtreecommitdiffstats
path: root/package/opkg
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-11-24 14:54:26 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-11-24 14:54:26 +0000
commit1fd328fb78d4ecdbfbd4912d5ea4552f22757017 (patch)
tree48a53ec5b3b39e9112544f704d968ba06cf88bd5 /package/opkg
parentf5a54d66019a7523a8cc5d19d912a34b6b8f6a2b (diff)
downloadupstream-1fd328fb78d4ecdbfbd4912d5ea4552f22757017.tar.gz
upstream-1fd328fb78d4ecdbfbd4912d5ea4552f22757017.tar.bz2
upstream-1fd328fb78d4ecdbfbd4912d5ea4552f22757017.zip
opkg: write error messages to stdout
SVN-Revision: 24133
Diffstat (limited to 'package/opkg')
-rw-r--r--package/opkg/patches/009-remove-upgrade-all.patch4
-rw-r--r--package/opkg/patches/014-errors-to-stderr.patch15
2 files changed, 17 insertions, 2 deletions
diff --git a/package/opkg/patches/009-remove-upgrade-all.patch b/package/opkg/patches/009-remove-upgrade-all.patch
index 1742494946..3bd7659cae 100644
--- a/package/opkg/patches/009-remove-upgrade-all.patch
+++ b/package/opkg/patches/009-remove-upgrade-all.patch
@@ -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");
diff --git a/package/opkg/patches/014-errors-to-stderr.patch b/package/opkg/patches/014-errors-to-stderr.patch
new file mode 100644
index 0000000000..f0a93a8717
--- /dev/null
+++ b/package/opkg/patches/014-errors-to-stderr.patch
@@ -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;
+ }
+ }