Changeset 1603 in ProjectBuilder for devel/pb/bin
- Timestamp:
- May 27, 2012, 1:49:49 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r1601 r1603 2332 2332 pb_system("cd $ENV{'PBBUILDDIR'} ; $cpcmd $src $cptarget 2> /dev/null","$cmt delivery in $cptarget"); 2333 2333 2334 my $chowncommand = pb_check_req("chown",0); 2334 2335 # For VE we need to change the owner manually 2335 2336 if ($cmt =~ /^VE/) { 2336 2337 pb_system("$shcmdroot sed -i '/requiretty/d' /etc/sudoers","Removing potential requiretty in sudoers"); 2337 pb_system("$shcmd \"sudo chown-R $mac $tdir\"","Adapt owner in $tdir to $mac");2338 pb_system("$shcmd \"sudo $chowncommand -R $mac $tdir\"","Adapt owner in $tdir to $mac"); 2338 2339 } 2339 2340 … … 2359 2360 # Get back info on pkg produced, compute their name and get them from the VM/RM 2360 2361 pb_system("$cpcmd $cp2target/pbgen-$ENV{'PBPROJVER'}-$ENV{'PBPROJTAG'}-$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'} $ENV{'PBBUILDDIR'}/pbgen-$ENV{'PBPROJVER'}-$ENV{'PBPROJTAG'}.$$ 2> /dev/null","Get package names in $cp2target"); 2361 # For VE we need to change the owner manually2362 if ($cmt eq "VEbuild") {2363 my $command = pb_check_req("chown",0);2364 pb_system("sudo $command $UID $ENV{'PBBUILDDIR'}/pbgen-$ENV{'PBPROJVER'}-$ENV{'PBPROJTAG'}.$$","Adapt owner in $tdir to $UID");2365 }2366 2362 if (not -f "$ENV{'PBBUILDDIR'}/pbgen-$ENV{'PBPROJVER'}-$ENV{'PBPROJTAG'}.$$") { 2367 pb_log(0," Problem with VM/RM $v on$ENV{'PBBUILDDIR'}/pbgen-$ENV{'PBPROJVER'}-$ENV{'PBPROJTAG'}.$$");2363 pb_log(0,"ERROR with VM/RM $v on getting $ENV{'PBBUILDDIR'}/pbgen-$ENV{'PBPROJVER'}-$ENV{'PBPROJTAG'}.$$"); 2368 2364 } else { 2369 2365 open(KEEP,"$ENV{'PBBUILDDIR'}/pbgen-$ENV{'PBPROJVER'}-$ENV{'PBPROJTAG'}.$$") || die "Unable to read $ENV{'PBBUILDDIR'}/pbgen-$ENV{'PBPROJVER'}-$ENV{'PBPROJTAG'}.$$"; … … 3323 3319 # Sync date 3324 3320 # do it after sudoers is setup 3325 print SCRIPT "pb_system(\"$ntpline\" );\n";3321 print SCRIPT "pb_system(\"$ntpline\",\"Updating time with $ntpline\",\"mayfail\");\n"; 3326 3322 } 3327 3323 # We may need a proxy configuration. Get it from the local env … … 3429 3425 # For VE we need to umount some FS at the end 3430 3426 3431 pb_system("umount /proc","Unmounting /proc ,"mayfail");3427 pb_system("umount /proc","Unmounting /proc","mayfail"); 3432 3428 3433 3429 # Create a basic network file if not already there
Note:
See TracChangeset
for help on using the changeset viewer.