]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: check for debian/control existence 3638/head
authorLoic Dachary <ldachary@redhat.com>
Thu, 5 Feb 2015 13:46:41 +0000 (14:46 +0100)
committerLoic Dachary <ldachary@redhat.com>
Thu, 5 Feb 2015 13:46:41 +0000 (14:46 +0100)
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 <ldachary@redhat.com>
install-deps.sh

index 3742f2c6a2cb9bc76cc1be07d4393b4da15ba2ce..cb050d692ad5288c274862afc7d90d3c537fc305 100755 (executable)
@@ -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: *//;' \