Changeset 1173


Ignore:
Timestamp:
Feb 3, 2011, 8:19:00 PM (9 years ago)
Author:
bruno
Message:

-Add somr structure creation in case we start from nothing and fix display for deb pkg generation

Location:
devel/pb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1165 r1173  
    727727        die "Unable to get env var PBDESTDIR" if (not defined $ENV{'PBDESTDIR'});
    728728
     729        my $dest = "$ENV{'PBDESTDIR'}/$pbpkg-$pbver";
     730        # Create the structure if needed
     731        pb_mkdir_p($dest);
    729732        # Clean up dest if necessary. The export will recreate it
    730         my $dest = "$ENV{'PBDESTDIR'}/$pbpkg-$pbver";
    731733        pb_rm_rf($dest) if (-d $dest);
    732734
     
    13011303        my $made2 = "";
    13021304        foreach my $f (split(/ /,$made)) {
    1303             $made2 .= "../$f " if ($f =~ /\.changes$/);
     1305            $made2 .= "../$f " if ($f =~ /\.deb$/);
    13041306        }
    13051307        if (-x $chkcmd) {
  • devel/pb/lib/ProjectBuilder/CMS.pm

    r1172 r1173  
    696696    }
    697697    pb_log(1,"Checking out $uri\n");
     698    # Create structure and remove end dir before exporting
     699    pb_mkdir_p("$ENV{$envar}");
     700    rm_rf($ENV{$envar});
    698701    pb_cms_checkout($scheme,$uri,$ENV{$envar});
    699702} else {
Note: See TracChangeset for help on using the changeset viewer.