Changeset 883 in ProjectBuilder for devel


Ignore:
Timestamp:
Oct 23, 2009, 9:00:45 PM (15 years ago)
Author:
Bruno Cornec
Message:
  • Better usage of variables in VM, VE only case, and remove dep when ordinary delivery
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r882 r883  
    11441144    my $conf = "sshconf";
    11451145    my $rebuild = "sshrebuild";
    1146     my $tmout = "vmtmout";
    1147     my $path = "vmpath";
     1146    my $tmout = undef;
     1147    my $path = undef;
    11481148    if ($cmt =~ /^VM/) {
    11491149        $login = "vmlogin";
    11501150        $dir = "pbdefdir";
    1151         $tmout = "vmtmout";
    11521151        $rebuild = "vmrebuild";
    11531152        # Specific VM
     1153        $tmout = "vmtmout";
     1154        $path = "vmpath";
    11541155        $host = "vmhost";
    11551156        $port = "vmport";
     
    12341235    pb_log(0,"Sources handled ($cmt): $src\n");
    12351236    pb_log(2,"values: ".Dumper(($host,$login,$dir,$port,$tmout,$rebuild,$path,$conf))."\n");
    1236     my ($sshhost,$sshlogin,$sshdir,$sshport,$vtmout,$vepath) = pb_conf_get($host,$login,$dir,$port,$path);
    1237     # Not mandatory
    1238     my ($vrebuild,$veconf,$testver,$vtmout) = pb_conf_get_if($rebuild,$conf,"testver",$tmout);
     1237    my ($sshhost,$sshlogin,$sshdir,$sshport) = pb_conf_get($host,$login,$dir,$port);
     1238    # Not mandatory...
     1239    my ($vrebuild,$veconf,$testver) = pb_conf_get_if($rebuild,$conf,"testver");
     1240    my ($vtmout,$vepath);
     1241    # ...Except those in virtual context
     1242    if ($cmt =~ /^VE/) {
     1243        ($vepath) = pb_conf_get($path);
     1244    }
     1245    if ($cmt =~ /^VM/) {
     1246        ($vtmout) = pb_conf_get($tmout);
     1247    }
    12391248    pb_log(2,"ssh: ".Dumper(($sshhost,$sshlogin,$sshdir,$sshport,$vtmout,$vrebuild,$vepath,$veconf))."\n");
    12401249
     
    13871396    $tdir =~ s|\$ENV.+\}/||;
    13881397
    1389     my $tm = $vtmout->{$ENV{'PBPROJ'}};
     1398    my $tm = undef;
     1399    if ($cmt =~ /^VM/) {
     1400        $tm = $vtmout->{$ENV{'PBPROJ'}};
     1401    }
    13901402
    13911403    # ssh communication if not VE
Note: See TracChangeset for help on using the changeset viewer.