Changeset 2484 in ProjectBuilder
- Timestamp:
- Mar 22, 2020, 6:51:01 PM (5 years ago)
- Location:
- devel/pb-modules/lib/ProjectBuilder
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Conf.pm
r2434 r2484 220 220 }; 221 221 if ($@) { 222 die "Unable to handle YAML configuration files without a YAML.pm module\n"; 222 eval { 223 # No YAML found using a more std but less complete one. Old perl only 224 require YAML::Tiny; 225 YAML::Tiny->import(); 226 }; 227 if ($@) { 228 eval { 229 # No YAML found using an embedded pne 230 require ProjectBuilder::YAML; 231 ProjectBuilder::YAML->import(); 232 }; 233 if ($@) { 234 # Here we should be in the setup phase, with an embedded YAML code 235 $ldfunc = \&LoadFile; 236 #die "Unable to handle YAML configuration files without a YAML.pm module\n"; 237 } else { 238 $ldfunc = \&ProjectBuilder::YAML::LoadFile; 239 } 240 } else { 241 $ldfunc = \&YAML::Tiny::LoadFile; 242 } 223 243 } else { 224 244 $ldfunc = \&Module::Build::YAML::LoadFile;
Note:
See TracChangeset
for help on using the changeset viewer.