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 <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2021-11-22 05:39:56 -08:00
1 parent aaea6bf00e
commit 122bda7f7e
1 file changed
+2
+2
View File
@@ -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.