Changeset 1600


Ignore:
Timestamp:
05/26/12 03:31:01 (13 months ago)
Author:
bruno
Message:
  • Reverting stop on error to false by default as VM are not usable for now with it. Will make a conf file option for this
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1598 r1600  
    4242 
    4343# Global variables 
    44 $Global::pb_stop_on_error = 1;  # True by default 
     44$Global::pb_stop_on_error = 0;  # False by default 
    4545$Global::pb_show_sudo = 0;      # False by default 
    4646 
     
    33483348 
    33493349# First install all required packages 
    3350 pb_system("yum clean all","Cleaning yum env") if (($pbos->{'name'} eq "fedora") || ($pbos->{'name'} eq "asianux") || ($pbos->{'name'} eq "rhel")); 
     3350pb_system("yum clean all","Cleaning yum env","mayfail") if (($pbos->{'name'} eq "fedora") || ($pbos->{'name'} eq "asianux") || ($pbos->{'name'} eq "rhel")); 
    33513351my ($ospkgdep) = pb_conf_get_if("ospkgdep"); 
    33523352     
     
    34003400    my $dir = $m; 
    34013401    $dir =~ s/-.*//; 
    3402     pb_system("echo \"rm -rf $m* ; wget http://search.cpan.org/CPAN/modules/by-module/$dir/$m-$osperlver->{$m}.tar.gz ; gzip -cd $m-$osperlver->{$m}.tar.gz | tar xf - ; cd $m* ; if [ -f Build.PL ]; then perl Build.PL; ./Build ; ./Build install ; else perl Makefile.PL; make ; make install ; fi; cd .. ; rm -rf $m*\" | bash -e" ,"Installing perl module $m-$osperlver->{$m}"); 
     3402    pb_system("echo \"rm -rf $m* ; wget http://search.cpan.org/CPAN/modules/by-module/$dir/$m-$osperlver->{$m}.tar.gz ; gzip -cd $m-$osperlver->{$m}.tar.gz | tar xf - ; cd $m* ; if [ -f Build.PL ]; then perl Build.PL; ./Build ; ./Build install ; else perl Makefile.PL; make ; make install ; fi; cd .. ; rm -rf $m*\" | bash -e" ,"Installing perl module $m-$osperlver->{$m}","mayfail"); 
    34033403} 
    34043404EOF 
     
    34223422    } 
    34233423    print SCRIPT << 'EOF'; 
    3424 pb_system("pb 2>&1 | head -5",undef,"verbose"); 
     3424pb_system("pb -h",undef,"verbose"); 
    34253425pb_system("pbdistrocheck",undef,"verbose"); 
    34263426EOF 
     
    34293429# For VE we need to umount some FS at the end 
    34303430 
    3431 pb_system("umount /proc"); 
     3431pb_system("umount /proc","Unmounting /proc,"mayfail"); 
    34323432 
    34333433# Create a basic network file if not already there 
Note: See TracChangeset for help on using the changeset viewer.