[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Quilt-dev] [patch 5/5] Informative message when using graph without gra
From: |
mquinson |
Subject: |
[Quilt-dev] [patch 5/5] Informative message when using graph without graphviz |
Date: |
Sat, 18 Jan 2014 01:54:12 +0100 |
User-agent: |
quilt/0.61-1 |
Description: Informative message when using graph without graphviz
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: 2014-01-18
---
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 @@
. $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"