Changeset 2434 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/Conf.pm
- Timestamp:
- Sep 6, 2019, 3:35:27 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Conf.pm
r2426 r2434 185 185 # Read the content of the config file and cache it in the %h hash then available for queries 186 186 if ($PBCONFVER < 1) { 187 open(CONF,$cf) || cluck "Unable to open $cf" && return($lh);187 open(CONF,$cf) || (cluck "Unable to open $cf" && return($lh)); 188 188 # This is the original conf file format for versions up to 0.14 189 189 while(<CONF>) { … … 337 337 confess "No configuration file defined to write into !" if (not defined $conffile); 338 338 confess "No hash defined to read from !" if (not defined $h); 339 open(CONF,"> $conffile") || cluck "Unable to write into $conffile" && return;339 open(CONF,"> $conffile") || (cluck "Unable to write into $conffile" && return); 340 340 341 341 if ($PBCONFVER < 1) { … … 553 553 my $dest = shift; 554 554 555 open(ORIG,$orig) || cluck "Unable to open $orig" && return;555 open(ORIG,$orig) || (cluck "Unable to open $orig" && return); 556 556 confess "Will not erase existing $dest while transforming $orig" if (-f $dest); 557 open(DEST,"> $dest") || cluck "Unable to write into $dest" && close(ORIG) && return;557 open(DEST,"> $dest") || (cluck "Unable to write into $dest" && close(ORIG) && return); 558 558 print DEST "---\n"; 559 559 my $pbconfverbkp = $PBCONFVER;
Note:
See TracChangeset
for help on using the changeset viewer.