From: Loic Dachary Date: Thu, 5 Feb 2015 13:46:41 +0000 (+0100) Subject: install-deps.sh: check for debian/control existence X-Git-Tag: v0.93~92^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F3638%2Fhead;p=ceph.git 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 --- diff --git a/install-deps.sh b/install-deps.sh index 3742f2c6a2cb..cb050d692ad5 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: *//;' \