Changeset 2263 in ProjectBuilder
- Timestamp:
- Aug 30, 2017, 5:07:44 PM (7 years ago)
- Location:
- devel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Conf.pm
r2261 r2263 230 230 231 231 pb_log(1,"Loading YAML conf file $cf\n"); 232 $lh = $ldfunc->($cf); 232 my $lh0 = $ldfunc->($cf); 233 foreach my $k (keys %$lh0) { 234 if (defined $lh->{$k}) { 235 foreach my $k2 (keys %{$lh0->{$k}}) { 236 $lh->{$k}->{$k2} = $lh0->{$k}->{$k2}; 237 } 238 } else { 239 $lh->{$k} = $lh0->{$k}; 240 } 241 } 233 242 } 234 243 return($lh); … … 549 558 my $lh1; 550 559 $lh0 = pb_conf_cache($orig,$lh0); 551 pb_log(2,"lh0:\n" ,Dumper($lh0),"\n");560 pb_log(2,"lh0:\n".Dumper($lh0)."\n"); 552 561 $PBCONFVER = $pbconfverbkp; 553 562 -
devel/pb/lib/ProjectBuilder/Filter.pm
r2260 r2263 70 70 my $pbos = shift; 71 71 my $ptr = undef; # returned value pointer on the hash of filters 72 my $ h;72 my $lh; 73 73 74 74 pb_log(2,"Entering pb_get_filters - pbpkg: $pbpkg - pbos: ".Dumper($pbos)."\n"); … … 108 108 foreach my $f (@ffiles) { 109 109 pb_log(3,"DEBUG processing filter file $f\n"); 110 $h = pb_conf_cache($f,$h); 111 } 112 $ptr = $h->{"filter"}; 110 $lh = pb_conf_cache($f,$lh); 111 pb_log(2, "filter hash is:\n".Dumper($lh)."\n"); 112 } 113 $ptr = $lh->{"filter"}; 113 114 114 115 # TODO: find a place to document it. Why not in this file as pod and also documenting filters ? 115 116 # Handle transform 116 if (defined $ h->{transform}) {117 while (my ($out_key,$spec) = each %{$ h->{transform}}) {117 if (defined $lh->{transform}) { 118 while (my ($out_key,$spec) = each %{$lh->{transform}}) { 118 119 die "Unknown transform for $out_key '$spec' expected <out-key> <transform>" unless $spec =~ /^([\w\-]+)\s+(.+)$/; 119 120 my ($in_key, $expr) = ($1, $2);
Note:
See TracChangeset
for help on using the changeset viewer.