Ignore:
Timestamp:
Dec 23, 2016, 1:16:18 PM (4 years ago)
Author:
Bruno Cornec
Message:
  • Now fix pb_distro_conf_print and place project after distros to have the right value for them. Will need a YAML conf file to solve fully
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/Distribution.pm

    r2153 r2155  
    766766my %rep;
    767767my $i = 0;
    768 # Index on prj
     768# Index on distro
     769foreach my $r (pb_distro_get_param($pbos,pb_conf_get(@keys))) {
     770    $rep{$keys[$i]} = $r if (defined $keys[$i]);
     771    $i++;
     772}
     773$i = 0;
     774# Then Index on prj to overwrite previous value if needed
    769775foreach my $r (pb_conf_get(@keys)) {
    770776    $rep{$keys[$i]} = $r->{'default'} if (defined  $r->{'default'});
     
    772778    $i++;
    773779}
    774 # Index on distro
    775 $i = 0;
    776 foreach my $r (pb_distro_get_param($pbos,pb_conf_get(@keys))) {
    777     $rep{$keys[$i]} = $r if (defined $keys[$i]);
    778     $i++;
    779 }
    780780foreach my $r (keys %rep) {
    781781    print "$r => " if (defined $ldebug);
Note: See TracChangeset for help on using the changeset viewer.