Changeset 1066 in ProjectBuilder for devel/pb/bin/pb
- Timestamp:
- Jun 27, 2010, 3:27:20 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r1065 r1066 1250 1250 my ($sshhost,$sshlogin,$sshdir,$sshport) = pb_conf_get($host,$login,$dir,$port); 1251 1251 # Not mandatory... 1252 my ($rbsconf,$testver ) = pb_conf_get_if($conf,"testver");1252 my ($rbsconf,$testver,$delivery) = pb_conf_get_if($conf,"testver","delivery"); 1253 1253 my ($vtmout,$vepath); 1254 1254 # ...Except those in virtual context … … 1277 1277 my $bdir; 1278 1278 if (($cmt eq "Sources") || ($cmt =~ /V[EM]Script/)) { 1279 $tdir = $sshdir->{$ENV{'PBPROJ'}}."/src"; 1280 if ((defined $testver) && (defined $testver->{$ENV{'PBPROJ'}}) && ($testver->{$ENV{'PBPROJ'}} =~ /true/i)) { 1281 # This is a test pkg => target dir is under test 1282 $tdir = $sshdir->{$ENV{'PBPROJ'}}."/test/src"; 1283 } 1279 $tdir = "$sshdir->{$ENV{'PBPROJ'}}/$delivery/src"; 1284 1280 } elsif (($cmt =~ /V[EM]build/) || ($cmt =~ /V[EM]test/)) { 1285 1281 $tdir = $sshdir->{$ENV{'PBPROJ'}}."/$ENV{'PBPROJ'}/delivery"; … … 1288 1284 $bdir =~ s|\$ENV.+\}/||; 1289 1285 } elsif ($cmt eq "Announce") { 1290 $tdir = "$sshdir->{$ENV{'PBPROJ'}}"; 1291 if ((defined $testver) && (defined $testver->{$ENV{'PBPROJ'}}) && ($testver->{$ENV{'PBPROJ'}} =~ /true/i)) { 1292 # This is a test pkg => target dir is under test 1293 $tdir = $sshdir->{$ENV{'PBPROJ'}}."/test"; 1294 } 1286 $tdir = "$sshdir->{$ENV{'PBPROJ'}}/$delivery"; 1295 1287 } elsif ($cmt eq "Web") { 1296 $tdir = "$sshdir->{$ENV{'PBPROJ'}}"; 1297 if ((defined $testver) && (defined $testver->{$ENV{'PBPROJ'}}) && ($testver->{$ENV{'PBPROJ'}} =~ /true/i)) { 1298 # This is a test website => target dir is under test 1299 $tdir = $sshdir->{$ENV{'PBPROJ'}}."/../test"; 1300 } 1288 $tdir = "$sshdir->{$ENV{'PBPROJ'}}/$delivery"; 1301 1289 } elsif ($cmt eq "Packages") { 1302 $tdir = $sshdir->{$ENV{'PBPROJ'}}."/$ddir/$dver"; 1303 1304 if ((defined $testver) && (defined $testver->{$ENV{'PBPROJ'}}) && ($testver->{$ENV{'PBPROJ'}} =~ /true/i)) { 1305 # This is a test pkg => target dir is under test 1306 $tdir = $sshdir->{$ENV{'PBPROJ'}}."/test/$ddir/$dver"; 1307 } 1290 $tdir = "$sshdir->{$ENV{'PBPROJ'}}/$delivery/$ddir/$dver"; 1308 1291 1309 1292 my $repodir = $tdir; … … 2134 2117 s/^testver/#testver/; 2135 2118 print OUT $_; 2119 pb_log(0,"Please check delivery ($_) in $ENV{'PBROOTDIR'}/../$newver/$ENV{'PBPROJ'}.pb\n") if (/^delivery/); 2136 2120 } 2137 2121 close(FILE); … … 2651 2635 } 2652 2636 $findstr .= " | grep -Ev \'src.rpm\'"; 2653 if ((not defined $testver) || (not defined $testver->{$ENV{'PBPROJ'}}) || ($testver->{$ENV{'PBPROJ'}} !~ /true/i)) {2654 $findstr .= " | grep -v ./test/";2655 }2656 2637 2657 2638 # Prepare the command to run and execute it
Note:
See TracChangeset
for help on using the changeset viewer.