Changeset 2376 in ProjectBuilder


Ignore:
Timestamp:
Mar 15, 2019, 5:38:07 PM (5 years ago)
Author:
Bruno Cornec
Message:

Check that a port is defined before using it. May mean that the .pbrc.yml file is missing for VMs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r2370 r2376  
    50505050# key is project on VM, but machine tuple for RM
    50515051if ($cmt =~ /^RM/i) {
     5052    die "No port passed in parameter. You may miss a config file. Report to dev team\n" if (not defined $port->{"$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}"});
    50525053    $nport = $port->{"$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}"};
    50535054} else {
     5055    die "No port passed in parameter. You may miss a config file. Report to dev team\n" if (not defined $port->{'PBPROJ'}});
    50545056    $nport = $port->{$ENV{'PBPROJ'}};
    50555057}
Note: See TracChangeset for help on using the changeset viewer.