Ignore:
Timestamp:
Nov 27, 2011, 3:44:49 AM (8 years ago)
Author:
bruno
Message:
  • Fix a bug in the recursive function pb_list_bfiles where file handle should not be global
  • patch command and option are now variables in p.conf under ospatchcmd and ospatchopt
  • Add support for patches for deb family of distributions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/lib/ProjectBuilder/Filter.pm

    r1252 r1367  
    2020use ProjectBuilder::Version;
    2121use ProjectBuilder::Base;
     22use ProjectBuilder::Conf;
     23use ProjectBuilder::Distribution;
    2224use ProjectBuilder::Changelog;
    2325
     
    215217            my $i = 0;
    216218            if (defined $pb->{'patches'}->{$tuple}) {
     219                my ($patchcmd,$patchopt) = pb_distro_get_param($pb->{'pbos'},pb_conf_get_if("ospatchcmd","ospatchopt"));
    217220                foreach my $p (split(/,/,$pb->{'patches'}->{$tuple})) {
    218221                    pb_log(3,"DEBUG($tuple) Adding patch command $i\n");
    219                     print DEST "%patch$i -p1\n";
     222                    print DEST "%patch$i $patchopt\n";
    220223                    $i++;
    221224                }
Note: See TracChangeset for help on using the changeset viewer.