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>
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: *//;' \