Changeset 1486 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/Base.pm


Ignore:
Timestamp:
Apr 25, 2012, 1:47:22 AM (12 years ago)
Author:
Bruno Cornec
Message:
  • pb_mkdir_p now returns the return value of mkpath
  • Do not point onto Cauldron anymore for Mageia chroots
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/Base.pm

    r1433 r1486  
    108108my @dir = @_;
    109109my $ret = mkpath(@dir, 0, 0755);
    110 return(0);
     110return($ret);
    111111}
    112112
     
    127127=item B<pb_system>
    128128
    129 Encapsulate the "system" call for better output and return value test
    130 Needs a $ENV{'PBTMP'} variable which is created by calling the pb_mktemp_init function
    131 Needs pb_log support, so pb_log_init should have benn called before.
    132 
    133 The first parameter is the shell command to call. this commend should NOT use redirections.
     129Encapsulate the "system" call for better output and return value test.
     130Needs a $ENV{'PBTMP'} variable which is created by calling the pb_mktemp_init function.
     131Needs pb_log support, so pb_log_init should have been called before.
     132
     133The first parameter is the shell command to call. This command should NOT use redirections.
    134134The second parameter is the message to print on screen. If none is given, then the command is printed.
    135 The third parameter print the result of the command after correct execution if value is verbose. If value is noredir, it avoids redirecting outputs (e.g. for vi).
    136 This function returns the result the return value of the system command.
     135The third parameter print the result of the command after correct execution if value is verbose. If value is noredir, it avoids redirecting outputs (e.g. for vi). If value is quiet, doesn't print anything at all.
     136This function returns as a result the return value of the system command.
    137137
    138138If no error reported, it prints OK on the screen, just after the message. Else it prints the errors generated.
Note: See TracChangeset for help on using the changeset viewer.