Changeset 1606


Ignore:
Timestamp:
05/28/12 03:41:43 (12 months ago)
Author:
bruno
Message:
  • Adds pbstoponerr option in conf file to allow to overwrite the default which is back to not stopping on errors as it perturbates VE and VM build for themoment, as not all commands are expected to succeed systematically.
Location:
devel
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/etc/pb.conf

    r1605 r1606  
    632632pbshowsudo default = false 
    633633 
     634# Do not stop on errors by default (VE/VM are still broken with it on) 
     635pbstoponerr default = false 
     636 
    634637# How do you want to install pb in your VM/VE (pkg or file) 
    635638pbinstalltype default = pkg 
  • devel/pb-modules/etc/pb.conf.pod

    r1597 r1606  
    576576 Example: pbsockscmd default = tsocks 
    577577 
     578=item B<pbstoponerr> 
     579 
     580 Nature: Optional 
     581 Key: project (as defined in the -p option or PBPROJ environment variable) 
     582 Value: false (by default), meaning that commands giving errors will not stop execution of the pb job. For quicker error solving, you may want to turn it to true in order to stop at the first error. Be aware that project-builder.org is not robust enough to work fully correctly with this on. Especially some commands may in a justified way error out, and you still want the process to go on. 
     583 Conffile: home 
     584 Example: pbstoponerr mondorescue = true 
     585 
     586 
    578587=item B<pburl> 
    579588 
  • devel/pb/bin/pb

    r1605 r1606  
    741741# Check for command requirements 
    742742# 
    743 my ($req,$opt,$pbpara,$pbshowsudo) = pb_conf_get_if("oscmd","oscmdopt","pbparallel","pbshowsudo"); 
     743my ($req,$opt,$pbpara,$pbshowsudo,$pbstoponerr) = pb_conf_get_if("oscmd","oscmdopt","pbparallel","pbshowsudo","pbstoponerr"); 
    744744pb_check_requirements($req,$opt,$appname); 
    745745 
    746746$Global::pb_show_sudo = 1 if ((defined $pbshowsudo) && (defined $pbshowsudo->{$ENV{'PBPROJ'}}) && ($pbshowsudo->{$ENV{'PBPROJ'}} =~ /true/oi)); 
     747$Global::pb_stop_on_error = 1 if ((defined $pbstoponerr) && (defined $pbstoponerr->{$ENV{'PBPROJ'}}) && ($pbstoponerr->{$ENV{'PBPROJ'}} =~ /true/oi)); 
    747748 
    748749# 
  • devel/pb/t/pbtest

    r1605 r1606  
    346346 
    347347# need tobe part of group video for KVM 
    348 sudocmd "grep -Eq '^video:' /etc/group | grep $PBUSER" 
     348sudocmd "grep -Eq '^video:' /etc/group" | grep $PBUSER 
    349349if [ $? -ne 0 ]; then 
    350350    sudocmd "perl -pi -e 's|^(video:.*)$|$1,$ENV{'PBUSER'}|' /etc/shadow" 
Note: See TracChangeset for help on using the changeset viewer.