Changeset 2251 in ProjectBuilder for devel/pb


Ignore:
Timestamp:
Aug 30, 2017, 5:07:30 PM (7 years ago)
Author:
Bruno Cornec
Message:

Transform .pb and .pbf files into .yml as well

In example generated as well as in the usage during processing

Location:
devel/pb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r2248 r2251  
    12891289        pb_mkdir_p($tmpd) if (defined $pbparallel);
    12901290
    1291         # Get only all.pbf filter at this stage for pbinit
     1291        # Get only all.yml filter at this stage for pbinit
    12921292        my $ptr = pb_get_filters($pbpkg);
    12931293
  • devel/pb/lib/ProjectBuilder/Filter.pm

    r2139 r2251  
    5353This function gets all filters to apply. They're cumulative from the less specific to the most specific.
    5454
    55 Suffix of those filters is .pbf. Filter all.pbf applies to whatever distribution. The pbfilter directory may be global under pbconf or per package, for overloading values. Then in order filters are loaded for distribution type, distribution family, distribution name, distribution name-version.
     55Suffix of those filters is .yml. Filter all.yml applies to whatever distribution. The pbfilter directory may be global under pbconf or per package, for overloading values. Then in order filters are loaded for distribution type, distribution family, distribution name, distribution name-version.
    5656
    5757The first parameter is the package name.
     
    7878foreach my $dir ("$ENV{PBROOTDIR}/pbfilter", "$ENV{PBROOTDIR}/$pbpkg/pbfilter") {
    7979    foreach my $file_basename (@file_basenames) {
    80         my $path = "$dir/${file_basename}.pbf";
     80        my $path = "$dir/${file_basename}.yml";
    8181        push(@ffiles, $path) if -f $path;
    8282    }
Note: See TracChangeset for help on using the changeset viewer.