Blame SOURCES/0189-p2v-Make-sure-command-is-printed-before-running-it.patch

ffd6ed
From b02f8c5d74ad869855561a2f1db9db5d79fa1e7b Mon Sep 17 00:00:00 2001
ffd6ed
From: "Richard W.M. Jones" <rjones@redhat.com>
ffd6ed
Date: Wed, 10 Jun 2015 14:04:49 +0100
ffd6ed
Subject: [PATCH] p2v: Make sure command is printed before running it.
ffd6ed
ffd6ed
This updates commit b45f6a04359b4b64256b7b21a04416fa772c9423.
ffd6ed
ffd6ed
(cherry picked from commit a716adac3589a339a3064bcf5e5cf33390309a14)
ffd6ed
---
ffd6ed
 p2v/kernel.c | 4 +++-
ffd6ed
 1 file changed, 3 insertions(+), 1 deletion(-)
ffd6ed
ffd6ed
diff --git a/p2v/kernel.c b/p2v/kernel.c
ffd6ed
index d9fe50d..397d19d 100644
ffd6ed
--- a/p2v/kernel.c
ffd6ed
+++ b/p2v/kernel.c
ffd6ed
@@ -249,8 +249,10 @@ run_command (int verbose, const char *stage, const char *command)
ffd6ed
   if (STREQ (command, ""))
ffd6ed
     return;
ffd6ed
 
ffd6ed
-  if (verbose)
ffd6ed
+  if (verbose) {
ffd6ed
     printf ("%s\n", command);
ffd6ed
+    fflush (stdout);
ffd6ed
+  }
ffd6ed
 
ffd6ed
   r = system (command);
ffd6ed
   if (r == -1) {
ffd6ed
-- 
ffd6ed
1.8.3.1
ffd6ed