Changeset 2150 in ProjectBuilder
- Timestamp:
- Dec 22, 2016, 6:50:45 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r2139 r2150 2458 2458 my $dkaccount = ""; 2459 2459 my $cmd1 = ""; 2460 my $cidfile = "$context/ctn-$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}.cid"; 2460 2461 my $homedir = ""; 2461 2462 if ($cmt =~ /^VE/) { … … 2518 2519 } else { 2519 2520 # As we are in run phase use docker run. cmd will be completed below 2520 $shcmd = "$cmd1 run --cidfile=\"$ ENV{'PBTMP'}/ctn.cid\" --user $dkaccount --name $pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}-$cmt";2521 $shcmd = "$cmd1 run --cidfile=\"$cidfile\" --user $dkaccount --name $pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}-$cmt"; 2521 2522 } 2522 2523 #$shcmd = "$cmd1 build $dockeropt->{$ENV{'PBPROJ'}} -t $tag{$pbstep+1} $context"; … … 2537 2538 if ($pbstep >= 2) { 2538 2539 # We need to get the home dir of the target account to deliver in the right place 2539 $homedir = `$cmd1 run --cidfile="$ ENV{'PBTMP'}/ctn.cid" $tag{$pbstep} grep -E '^$dkaccount:' /etc/passwd | cut -d: -f6`;2540 $homedir = `$cmd1 run --cidfile="$cidfile" $tag{$pbstep} grep -E '^$dkaccount:' /etc/passwd | cut -d: -f6`; 2540 2541 chomp($homedir); 2541 open(CID,"$ ENV{'PBTMP'}/ctn.cid") || confess "Unable to open $ENV{'PBTMP'}/ctn.cid";2542 open(CID,"$cidfile") || confess "Unable to open $cidfile"; 2542 2543 my $cid = <CID>; 2543 2544 close(CID); 2544 2545 pb_system("$cmd1 rm $cid","","quiet"); 2545 unlink("$ ENV{'PBTMP'}/ctn.cid");2546 unlink("$cidfile"); 2546 2547 } else { 2547 2548 $homedir = "/";
Note:
See TracChangeset
for help on using the changeset viewer.