treewide: handle preInstallPhases __structuredAttrs-agnostically

Always specify the preInstallPhases attribute as a list instead of a
string.

Append elements to the preInstallPhases Bash variable using appendToVar
instead of string or Bash array concatenation.
This commit is contained in:
Yueh-Shun Li
2024-09-03 05:33:59 +08:00
parent 5d42a8b38c
commit 385d523a8e
3 changed files with 3 additions and 3 deletions
@@ -16,5 +16,5 @@ pythonRuntimeDepsCheckHook() {
if [ -z "${dontCheckRuntimeDeps-}" ]; then
echo "Using pythonRuntimeDepsCheckHook"
preInstallPhases+=" pythonRuntimeDepsCheckHook"
appendToVar preInstallPhases pythonRuntimeDepsCheckHook
fi