libpmodules: substitute env-vars in Pmodules.yaml

Subsitute environment variables if used in TmpDir and DistFilesDir in
Pmodules.yaml.
This commit is contained in:
2025-11-27 18:05:36 +01:00
parent ab2bd63caf
commit 05ddd513c7
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -7,6 +7,8 @@
(#1316, #1331)
### build system
* Substitute environment variables in TmpDir and DistFilesDir in Pmodules.yaml
(#1333)
* Function to simplify building modules with pip3 added.
(#1329)
* pbuild::install_docfiles() is now obsolete. If called it exists with
+2
View File
@@ -425,9 +425,11 @@ pm::read_config(){
;;
tmpdir | tmp_dir )
yml::get_value TmpDir yaml_input ".${key}" '!!str'
TmpDir="$(envsubst <<<"${TmpDir}")"
;;
distfilesdir | download_dir )
yml::get_value DistfilesDir yaml_input ".${key}" '!!str'
DistfilesDir="$(envsubst <<<"${DistfilesDir}")"
;;
overlays )
local -- overlay=''