quilt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Quilt-dev] [patch 4/7] Informative message when using graph without gra


From: martin . quinson
Subject: [Quilt-dev] [patch 4/7] Informative message when using graph without graphviz
Date: Sat, 21 Dec 2013 21:27:56 +0100
User-agent: quilt/0.61-1

Description:
 Previously, trying to use the graph subcommand without graphviz being
 installed resulted in a cryptic error message: 
 .
 Can't exec "tred": No such file or directory at /usr/lib/perl/5.14/IO/File.pm 
line 66, <STDIN> line 1.
 .
 graphviz is already in the Suggests field of the debian package, and
 we cannot raise this dependency severity given the central role of
 quilt in the debian infrastructure. This informative error message is
 much more sensible.
Author: Martin Quinson <address@hidden>
Bug-Debian: http://bugs.debian.org/659944
Forwarded: 2013-12-21

---
 quilt/graph.in |    7 +++++++
 1 file changed, 7 insertions(+)

Index: b/quilt/graph.in
===================================================================
--- a/quilt/graph.in
+++ b/quilt/graph.in
@@ -17,6 +17,13 @@ then
        . $QUILT_DIR/scripts/patchfns
 fi
 
+whichtred=`which /usr/bin/tred`
+if [ -z "$whichtred" ]
+then
+       echo $"It seems that graphviz is currently not installed (unable to 
find the tred binary). You must install it to use 'quilt graph'."
+       exit 1
+fi
+
 usage()
 {
        printf $"Usage: quilt graph [--all] [--reduce] [--lines[=num]] 
[--edge-labels=files] [-T ps] [patch]\n"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]