[PATCH 1 of 6] packaging: print more specific error messages when builddeb fails

Antonio Muci a.mux at inwind.it
Tue Oct 9 21:29:23 UTC 2018


# HG changeset patch
# User muxator <a.mux at inwind.it>
# Date 1539113979 -7200
#      Tue Oct 09 21:39:39 2018 +0200
# Node ID 42d6233230fb917da7f53f181f29b4c4c209b65e
# Parent  a66594c5fad422499bfaf669d182e02fe3c0be32
packaging: print more specific error messages when builddeb fails

diff --git a/contrib/packaging/builddeb b/contrib/packaging/builddeb
--- a/contrib/packaging/builddeb
+++ b/contrib/packaging/builddeb
@@ -49,7 +49,7 @@ trap "if [ '$CLEANUP' ] ; then rm -r '$P
 set -u
 
 if [ ! -d .hg ]; then
-    echo 'You are not inside a Mercurial repository!' 1>&2
+    printf "You are inside %s, which is not the root of a Mercurial repository\n" $(pwd) 1>&2
     exit 1
 fi
 
@@ -71,7 +71,7 @@ changelog=debian/changelog
 
 if [ "$BUILD" ]; then
     if [ -d debian ] ; then
-        echo "Error! debian control directory already exists!"
+        printf "Error! debian control directory already exists at %s/debian\n" $(pwd)
         exit 1
     fi
 


More information about the Mercurial-devel mailing list