diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-12-23 16:55:32 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-12-23 16:55:32 +0200 |
commit | 9fb4b6e232e2108710e043770c6a22aa23a1870c (patch) | |
tree | ff1ac23728332001d199ec92974ba7aaf7bb365c /main/apk-tools/0003-print-flush-on-apk_log.patch | |
parent | d4b7abf8f23aa96021e07ef63ae8a5129faa5ecd (diff) | |
download | aports-9fb4b6e232e2108710e043770c6a22aa23a1870c.tar.bz2 aports-9fb4b6e232e2108710e043770c6a22aa23a1870c.tar.xz |
main/apk-tools: upstream commit: flush stdout after log message
Diffstat (limited to 'main/apk-tools/0003-print-flush-on-apk_log.patch')
-rw-r--r-- | main/apk-tools/0003-print-flush-on-apk_log.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/main/apk-tools/0003-print-flush-on-apk_log.patch b/main/apk-tools/0003-print-flush-on-apk_log.patch new file mode 100644 index 000000000..4ef81b57f --- /dev/null +++ b/main/apk-tools/0003-print-flush-on-apk_log.patch @@ -0,0 +1,25 @@ +From 1f8b79347187ab0933b595ded32b69217903037c Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Thu, 5 Dec 2013 10:58:23 +0100 +Subject: [PATCH 3/3] print: flush on apk_log + +Makes it more useful whith pipes. +--- + src/print.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/print.c b/src/print.c +index aafe2ef..d8b0f3f 100644 +--- a/src/print.c ++++ b/src/print.c +@@ -149,6 +149,7 @@ void apk_log(const char *prefix, const char *format, ...) + vfprintf(stdout, format, va); + va_end(va); + fprintf(stdout, "\n"); ++ fflush(stdout); + apk_progress_force = 1; + } + +-- +1.8.5.1 + |