Blame SOURCES/0001-missing-groff-x11-info-message-when-gxditview-not-fo.patch

910785
From 103f1f6b4e4cfd007375cd127b8e69cd102d4097 Mon Sep 17 00:00:00 2001
910785
From: Jan Vcelak <jvcelak@redhat.com>
910785
Date: Tue, 1 Jan 2013 15:32:01 +0100
910785
Subject: [PATCH] missing groff-x11 info message when gxditview not found
910785
910785
Adds info message that 'groff-x11' package might be missing when
910785
executing 'groff -X' and 'gxditview' is not found.
910785
910785
Resolves: #530788
910785
Signed-off-by: Jan Vcelak <jvcelak@redhat.com>
910785
---
910785
 src/roff/groff/pipeline.c | 2 ++
910785
 1 file changed, 2 insertions(+)
910785
910785
diff --git a/src/roff/groff/pipeline.c b/src/roff/groff/pipeline.c
910785
index cea7593..fce0abc 100644
910785
--- a/src/roff/groff/pipeline.c
910785
+++ b/src/roff/groff/pipeline.c
910785
@@ -486,6 +486,8 @@ int run_pipeline(int ncommands, char ***commands, int no_pipe)
910785
       execvp(commands[i][0], commands[i]);
910785
       error("couldn't exec %1: %2",
910785
 	    commands[i][0], strerror(errno), (char *)0);
910785
+	  if (strcmp(commands[i][0], "gxditview") == 0)
910785
+	    fprintf(stderr, "You might be missing 'groff-x11' package.\n");
910785
       fflush(stderr);			/* just in case error() doesn't */
910785
       _exit(EXEC_FAILED_EXIT_STATUS);
910785
     }
910785
-- 
910785
1.8.0.2
910785