config: only try to load FILE.ARCH and FILE.DIST if non-empty strings

to thus avoid trying to load `FILE.`

Gbp-Dch: Ignore
This commit is contained in:
Lyndon Brown 2020-04-28 18:41:44 +01:00 committed by Raphaël Hertzog
parent 61aa3239c5
commit a72e7daaf7
1 changed files with 3 additions and 1 deletions

View File

@ -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