From a72e7daaf74fbc4a67d251e5e8f9d5bfb596ba97 Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Tue, 28 Apr 2020 18:41:44 +0100 Subject: config: only try to load FILE.ARCH and FILE.DIST if non-empty strings to thus avoid trying to load `FILE.` Gbp-Dch: Ignore --- functions/conffile.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/conffile.sh b/functions/conffile.sh index d1036adcf..c57f4ed53 100755 --- a/functions/conffile.sh +++ b/functions/conffile.sh @@ -18,7 +18,9 @@ Get_conffiles () else local FILE for FILE in "${@}"; do - FILES="${FILES} ${FILE} ${FILE}.${LB_ARCHITECTURE} ${FILE}.${DISTRIBUTION}" + FILES="${FILES} ${FILE}" + FILES="${FILES} ${LB_ARCHITECTURE:+$FILE.$LB_ARCHITECTURE}" + FILES="${FILES} ${DISTRIBUTION:+$FILE.$DISTRIBUTION}" done fi -- cgit v1.2.3