Changeset 1208 in ProjectBuilder


Ignore:
Timestamp:
Feb 19, 2011, 1:36:38 AM (13 years ago)
Author:
Bruno Cornec
Message:
  • Fix a typo in CMS.pm
  • Try to fix an issue when starting from a clean env (only one package built instead of 3 the first time)
Location:
devel/pb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1207 r1208  
    11911191    $pkg = { } if (not defined $pkg);
    11921192
    1193     chdir "$ENV{'PBBUILDDIR'}";
     1193    pb_mkdir_p("$ENV{'PBBUILDDIR'}") || die "Unable to create $ENV{'PBBUILDDIR'}";
     1194    chdir "$ENV{'PBBUILDDIR'}" || die "Unable to chdir to $ENV{'PBBUILDDIR'}";
    11941195    my $made = ""; # pkgs made during build
    11951196    my $pm;
     
    12571258
    12581259        } elsif ($pbos->{'type'} eq "deb") {
    1259             chdir "$ENV{'PBBUILDDIR'}" || die "Unable to chdir to $ENV{'PBBUILDDIR'}";
    12601260            pb_system("tar xfz $src","Extracting sources");
    12611261            pb_system("tar xfz $src2","Extracting pbconf");
     
    13411341            $made="$made $pbpkg/$pbpkg-$pbver-*-$pbtag.tgz";
    13421342
    1343             chdir "$ENV{'PBBUILDDIR'}" || die "Unable to chdir to $ENV{'PBBUILDDIR'}";
    13441343            pb_system("tar xfz $src","Extracting sources");
    13451344            pb_system("tar xfz $src2","Extracting pbconf");
     
    13561355            my $pkgdestdir="$ENV{'PBBUILDDIR'}/install";
    13571356
    1358             chdir "$ENV{'PBBUILDDIR'}" || die "Unable to chdir to $ENV{'PBBUILDDIR'}";
    13591357            # Will host resulting packages
    13601358            pb_mkdir_p("$pbos->{'type'}");
     
    13921390        } elsif ($pbos->{'type'} eq "hpux") {
    13931391            # HP-UX
    1394             chdir "$ENV{'PBBUILDDIR'}" || die "Unable to chdir to $ENV{'PBBUILDDIR'}";
    13951392            pb_system("tar xfz $src","Extracting sources");
    13961393            pb_system("tar xfz $src2","Extracting pbconf");
     
    15611558        $pkg = { } if (not defined $pkg);
    15621559
    1563         chdir "$ENV{'PBBUILDDIR'}";
     1560        pb_mkdir_p("$ENV{'PBBUILDDIR'}") || die "Unable to create $ENV{'PBBUILDDIR'}";
     1561        chdir "$ENV{'PBBUILDDIR'}" || die "Unable to chdir to $ENV{'PBBUILDDIR'}";
    15641562        foreach my $pbpkg (@pkgs) {
    15651563            my $vertag = $pkg->{$pbpkg};
  • devel/pb/lib/ProjectBuilder/CMS.pm

    r1185 r1208  
    706706    # Create structure and remove end dir before exporting
    707707    pb_mkdir_p("$ENV{$envar}");
    708     rm_rf($ENV{$envar});
     708    pb_rm_rf($ENV{$envar});
    709709    pb_cms_checkout($scheme,$uri,$ENV{$envar});
    710710} else {
Note: See TracChangeset for help on using the changeset viewer.