summaryrefslogtreecommitdiff
path: root/fml/lib
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-03-20 04:16:51 +0000
committerfukachan <fukachan>2001-03-20 04:16:51 +0000
commit92118c3ee9cf8f6404b8a9507b164cffd77627a7 (patch)
tree3ee64d29354f383485f8fd057b342a6ec419cc77 /fml/lib
parentcd507f785a5e42885034e08c5e3e8bcb5c68aa56 (diff)
downloadfml8-92118c3ee9cf8f6404b8a9507b164cffd77627a7.tar.gz
fml8-92118c3ee9cf8f6404b8a9507b164cffd77627a7.tar.bz2
fml8-92118c3ee9cf8f6404b8a9507b164cffd77627a7.zip
check more $home_dir or $ml_name is specified if we need_ml_name().
Diffstat (limited to 'fml/lib')
-rw-r--r--fml/lib/FML/Process/Kernel.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/fml/lib/FML/Process/Kernel.pm b/fml/lib/FML/Process/Kernel.pm
index 867c9aca..55b5684a 100644
--- a/fml/lib/FML/Process/Kernel.pm
+++ b/fml/lib/FML/Process/Kernel.pm
@@ -90,6 +90,13 @@ sub new
}
}
+ # error if we need $ml_home_dir but is not specified.
+ if ($args->{ need_ml_name }) {
+ unless ($cfargs->{ ml_home_dir }) {
+ croak("specify ml_home_dir or ml_name");
+ }
+ }
+
# import $fml_version
if (defined $args->{ fml_version }) {
$cfargs->{ fml_version } = "fml-devel ". $args->{ fml_version };