aboutsummaryrefslogtreecommitdiffstats
path: root/main/apk-tools/0001-version-index-output-to-stdout-instead-of-stderr.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/apk-tools/0001-version-index-output-to-stdout-instead-of-stderr.patch')
-rw-r--r--main/apk-tools/0001-version-index-output-to-stdout-instead-of-stderr.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/main/apk-tools/0001-version-index-output-to-stdout-instead-of-stderr.patch b/main/apk-tools/0001-version-index-output-to-stdout-instead-of-stderr.patch
new file mode 100644
index 0000000000..31bfc9a368
--- /dev/null
+++ b/main/apk-tools/0001-version-index-output-to-stdout-instead-of-stderr.patch
@@ -0,0 +1,31 @@
+From d3861d70a88c6d2d3583fb90946aedb48a8d3e46 Mon Sep 17 00:00:00 2001
+From: Timo Teras <timo.teras@iki.fi>
+Date: Fri, 4 Sep 2009 11:38:19 +0300
+Subject: [PATCH] version: --index output to stdout instead of stderr
+
+---
+ src/ver.c | 8 ++++----
+ 1 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/ver.c b/src/ver.c
+index 3f85afc..a617bdb 100644
+--- a/src/ver.c
++++ b/src/ver.c
+@@ -31,10 +31,10 @@ static int ver_indexes(struct apk_database *db, int argc, char **argv)
+ if (APK_BLOB_IS_NULL(repo->description))
+ continue;
+
+- apk_message("%.*s [%s]",
+- repo->description.len,
+- repo->description.ptr,
+- db->repos[i].url);
++ printf("%.*s [%s]\n",
++ repo->description.len,
++ repo->description.ptr,
++ db->repos[i].url);
+ }
+
+ return 0;
+--
+1.6.4.2
+