Changeset 494 for devel/pb/bin/pb


Ignore:
Timestamp:
Jun 29, 2008, 11:54:46 PM (12 years ago)
Author:
Bruno Cornec
Message:

Prepare handling of patches - first step right place and info gathered

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r493 r494  
    564564            my $ptr = pb_get_filters($pbpkg, $dtype, $dfam, $ddir, $dver);
    565565
     566            # Prepare patches for this distro
     567            my @patches;
     568
     569            foreach my $p (sort(<$ENV{'PBROOTDIR'}/$pbpkg/pbpatch/*>)) {
     570                push @patches,$p if ($p =~ /\.all$/);
     571                push @patches,$p if ($p =~ /\.$dtype$/);
     572                push @patches,$p if ($p =~ /\.$dfam$/);
     573                push @patches,$p if ($p =~ /\.$ddir$/);
     574                push @patches,$p if ($p =~ /\.$ddir-$dver$/);
     575            }
     576
    566577            # Apply now all the filters on all the files concerned
    567578            # destination dir depends on the type of file
     
    601612            chmod 0755,"$ENV{'PBTMP'}/pbinit";
    602613            pb_system("cd $dest ; $ENV{'PBTMP'}/pbinit","Executing init script from $ENV{'PBROOTDIR'}/$pbpkg/pbinit","verbose");
     614        }
     615
     616        # Filter potential patches
     617        foreach my $p (sort(<$ENV{'PBROOTDIR'}/$pbpkg/pbpatch/*>)) {
     618            pb_mkdir_p("$dest/pbconf/pbpatch");
     619            pb_filter_file("$ENV{'PBROOTDIR'}/$pbpkg/pbpatch/$p",$ptr,"$dest/pbconf/pbpatch/$p",$pbpkg,$pbver,$pbtag,$pbrev,$pbdate,$ENV{'PBPACKAGER'},$ENV{'PBPROJ'},$ENV{'PBREPO'});
    603620        }
    604621
Note: See TracChangeset for help on using the changeset viewer.