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

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