From 122bda7f7eb12ffc341847e7657d8ecdb56ce3a1 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sat, 13 Nov 2021 07:16:11 -0500 Subject: [PATCH] debian: Fail build if no module dependencies found debian/rules uses --list-dependencies to collect the dependencies of all essential modules. Ensure that the list is not empty. Helps #2149. Signed-off-by: James Valleroy Reviewed-by: Sunil Mohan Adapa --- debian/rules | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/rules b/debian/rules index a99ef4c7f..422282dca 100755 --- a/debian/rules +++ b/debian/rules @@ -10,6 +10,8 @@ override_dh_auto_install-indep: dh_auto_install ./run --develop --list-dependencies | sort | tr '\n' ', ' | \ sed -e 's/^/freedombox:Depends=/' >> debian/freedombox.substvars + # Ensure the list of dependencies is not empty. + test -s debian/freedombox.substvars || exit 1 # pybuild can run pytest. However, when the top level directory is included in # the path (done using manage.py), it results in import problems.