aboutsummaryrefslogtreecommitdiffstats
path: root/main/apk-tools/0001-version-index-output-to-stdout-instead-of-stderr.patch
blob: 31bfc9a368413ecbc6066f1e0be71520dd1a271b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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