Changeset 1212 in ProjectBuilder for devel/pb/bin/pb


Ignore:
Timestamp:
Feb 21, 2011, 12:20:02 AM (13 years ago)
Author:
Bruno Cornec
Message:
  • pb_mkdir_p doesn't return anything anymore. Test of return removed.
  • Packages installed are not using really the install command not the update one.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1208 r1212  
    11911191    $pkg = { } if (not defined $pkg);
    11921192
    1193     pb_mkdir_p("$ENV{'PBBUILDDIR'}") || die "Unable to create $ENV{'PBBUILDDIR'}";
     1193    pb_mkdir_p("$ENV{'PBBUILDDIR'}") if (! -d "$ENV{'PBBUILDDIR'}");
    11941194    chdir "$ENV{'PBBUILDDIR'}" || die "Unable to chdir to $ENV{'PBBUILDDIR'}";
    11951195    my $made = ""; # pkgs made during build
     
    12171217            foreach my $d ('RPMS','SRPMS','SPECS','SOURCES','BUILD') {
    12181218                if (! -d "$ENV{'PBBUILDDIR'}/$d") {
    1219                 pb_mkdir_p("$ENV{'PBBUILDDIR'}/$d") || die "Please ensure that you can write into $ENV{'PBBUILDDIR'} to create $d\nchown the $ENV{'PBBUILDDIR'} directory to your uid";
     1219                    pb_mkdir_p("$ENV{'PBBUILDDIR'}/$d");
    12201220                }
    12211221            }
     
    15581558        $pkg = { } if (not defined $pkg);
    15591559
    1560         pb_mkdir_p("$ENV{'PBBUILDDIR'}") || die "Unable to create $ENV{'PBBUILDDIR'}";
     1560        pb_mkdir_p("$ENV{'PBBUILDDIR'}") if (! -d "$ENV{'PBBUILDDIR'}");
    15611561        chdir "$ENV{'PBBUILDDIR'}" || die "Unable to chdir to $ENV{'PBBUILDDIR'}";
    15621562        foreach my $pbpkg (@pkgs) {
Note: See TracChangeset for help on using the changeset viewer.