From f664d4826687156c3ae6de6e15e37ee007dc26fa Mon Sep 17 00:00:00 2001 From: Erik Moeller Date: Wed, 27 Sep 2023 17:46:42 -0700 Subject: [PATCH] Add backwards-compatible reference to new build-requirements.txt --- securedrop-proxy/debian/rules | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/securedrop-proxy/debian/rules b/securedrop-proxy/debian/rules index 4c007cf6..606bc1a8 100755 --- a/securedrop-proxy/debian/rules +++ b/securedrop-proxy/debian/rules @@ -3,7 +3,8 @@ %: dh $@ --with python-virtualenv -REQUIREMENTS_FILE=requirements/build-requirements.txt +# For backwards compatibility; can be set to build-requirements.txt once fully switched to new path +REQUIREMENTS_FILE=$(shell test -e build-requirements.txt && echo "build-requirements.txt" || echo "requirements/build-requirements.txt") override_dh_virtualenv: test -e $(REQUIREMENTS_FILE)