Changeset 1486


Ignore:
Timestamp:
Apr 25, 2012, 1:47:22 AM (7 years ago)
Author:
bruno
Message:
  • pb_mkdir_p now returns the return value of mkpath
  • Do not point onto Cauldron anymore for Mageia chroots
Location:
devel
Files:
3 edited

Legend:

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

    r1460 r1486  
    375375# pbos->{'arch'} == i586 for i386 repo
    376376rbsmirrorsrv mandriva = http://mirrors.kernel.org/mandriva/Mandrakelinux/official/$pbos->{'version'}/$pbos->{'arch'}/media/main/release/
    377 rbsmirrorsrv mageia = http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/$pbos->{'arch'}/media/core/release/
     377rbsmirrorsrv mageia = http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/$pbos->{'version'}/$pbos->{'arch'}/media/core/release/
    378378#rbsmirrorsrv debian = http://ftp.us.debian.org/debian/
    379379#rbsmirrorsrv ubuntu = http://us.releases.ubuntu.com/releases/
  • 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.
  • devel/pb/bin/pb

    r1484 r1486  
    37843784# If not mandatory return now
    37853785return() if (($res != 0) and (($mandatory eq "patch") || ($mandatory eq "src")));
    3786 opendir(DIR,"$dir") || die "Unable to open directory $dir";
     3786opendir(DIR,"$dir") || die "Unable to open directory $dir: $!";
    37873787foreach my $f (readdir(DIR)) {
    37883788    next if ($f =~ /^\./);
Note: See TracChangeset for help on using the changeset viewer.