From 3cf7fcc6cbd4bf7b1c526863e33149d7745afc6b Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Thu, 5 Feb 2015 14:46:41 +0100 Subject: [PATCH] install-deps.sh: check for debian/control existence If the debian/control file does not exist the error is cryptic. Improve the situation by checking before running dpkg-checkbuilddeps. Signed-off-by: Loic Dachary --- install-deps.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install-deps.sh b/install-deps.sh index 3742f2c6a2cb9..cb050d692ad52 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -30,6 +30,10 @@ fi case $(lsb_release -si) in Ubuntu|Debian|Devuan) $SUDO apt-get install -y dpkg-dev + if ! test -r debian/control ; then + echo debian/control is not a readable file + exit 1 + fi touch $DIR/status packages=$(dpkg-checkbuilddeps --admindir=$DIR debian/control 2>&1 | \ perl -p -e 's/.*Unmet build dependencies: *//;' \ -- 2.39.5