From 32143a21c0fb6cc924912724533992297069a1ab Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 2 May 2024 17:20:55 +0200 Subject: [PATCH] build-system: opt --overlay is only allowed if legacy config is used --- Pmodules/modbuild.in | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Pmodules/modbuild.in b/Pmodules/modbuild.in index 4aeb388..3d49ee0 100755 --- a/Pmodules/modbuild.in +++ b/Pmodules/modbuild.in @@ -145,10 +145,12 @@ MISCELLANEOUS OPTIONS: --tmpdir Directory used for building a module. ---overlay - Install in this overlay. Defaults to '${PMODULES_HOME%%/Tools*}'. --legacy - Use legacy configuration files. + Use legacy configuration files. + +--overlay + Install in this overlay. Defaults to the base overlay. This + option can only be used with legacy configuration file. DOCUMENTATION: Full documentation is available at @@ -397,6 +399,9 @@ parse_args() { "%s -- %s" \ "YAML config file doesn't exist or is not readable" \ "${yaml_config_file}" + [[ "${opt_overlay}" == 'yes' ]] && \ + std::die 2 \ + "opt '--overlay' can only be used together with legacy config files!" std::info "Using YAML configuration file - ${yaml_config_file}" fi }