Changeset 2488 in ProjectBuilder for devel/pb/lib/ProjectBuilder/Filter.pm


Ignore:
Timestamp:
Mar 30, 2020, 8:21:44 PM (4 years ago)
Author:
Bruno Cornec
Message:

Improve debug messages

  • pb_distro_get_param now an internal function printing name of hash members
  • use pb_distro_guess instead of pb_distro_get
  • pb_distro_get and pb_distro_get_if introduced to replace call to pb_conf_get(_if)* + and old pb_distro_get_param
  • add pb_distro_get_in_conf_if for another use case of old pb_distro_get_param
  • fix all calls to these functions
File:
1 edited

Legend:

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

    r2287 r2488  
    77# $Id$
    88#
    9 # Copyright B. Cornec 2007-2016
     9# Copyright B. Cornec 2007-today
    1010# Eric Anderson's changes are (c) Copyright 2012 Hewlett Packard
    1111# Provided under the GPL v2
     
    216216            my $i = 0;
    217217            if (defined $pb->{'patches'}->{$tuple}) {
    218                 my ($patchcmd,$patchopt) = pb_distro_get_param($pb->{'pbos'},pb_conf_get_if("ospatchcmd","ospatchopt"));
     218                my ($patchcmd,$patchopt) = pb_distro_get_if($pb->{'pbos'},("ospatchcmd","ospatchopt"));
    219219                foreach my $p (split(/,/,$pb->{'patches'}->{$tuple})) {
    220220                    pb_log(3,"DEBUG($tuple) Adding patch command $i ($patchopt)\n");
Note: See TracChangeset for help on using the changeset viewer.