Changeset 2319 in ProjectBuilder


Ignore:
Timestamp:
Sep 7, 2017, 5:16:09 PM (7 years ago)
Author:
Bruno Cornec
Message:

Avoid parallelism issues with confess in subfunction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r2318 r2319  
    37103710
    37113711    $counter++;
    3712     # Modulo 2 * pbparallel (to avoid synchronization problems)
    3713     $counter = 1 if ((defined $pbparallel) && ($counter > 2 * $pbparallel));
    3714     $pm->start($counter) and next if (defined $pbparallel);
     3712    if (defined $pbparallel) {
     3713        # Modulo 2 * pbparallel (to avoid synchronization problems)
     3714        $counter = 1 if ($counter > 2 * $pbparallel);
     3715        $pm->start($counter) and next;
     3716    }
    37153717
    37163718    # Get distro context
     
    37233725    # Do not use the one passed potentially with -a
    37243726    my ($pbac) = pb_conf_get($vtype."login");
    3725     confess "No $vtype.login defined in your project yml conf file" if ((not defined $pbac) || (not defined $pbac->{$ENV{'PBPROJ'}}));
     3727    confess "No $vtype"."login defined in your project yml conf file" if ((not defined $pbac) || (not defined $pbac->{$ENV{'PBPROJ'}}));
    37263728
    37273729    my $key = "";
Note: See TracChangeset for help on using the changeset viewer.