diff --git a/examples/B20autopkgtest b/examples/B20autopkgtest index 61eff862d664b34cf482dcd8cd0eeb7221a8bc16..ad85e58206d9ac9c942329042600620f731d8d76 100644 --- a/examples/B20autopkgtest +++ b/examples/B20autopkgtest @@ -36,8 +36,11 @@ set -ex cd "$BUILDDIR"/*/debian/.. -if [ ! -f debian/tests/control ]; then - echo "Package does not have autopkgtest support, debian/tests/control is missing" +apt-get --yes install autodep8 + +if [ -z "$(autodep8)" ]; then + echo "Package does not have autopkgtest support. Either file" + echo "debian/tests/control is missing or there is no autodep8 support." exit 0 fi