Changeset 196


Ignore:
Timestamp:
07/15/15 21:34:28 (9 years ago)
Author:
kdeugau
Message:

/trunk

Revert change in $tarballdir flow down from %prep into %build etc;
as per Andreas Scherer's report and further testing, it was incorrect.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r195 r196  
    66
    77PKGNAME=debbuild
    8 VERSION=0.11.1
     8VERSION=0.11.2
    99
    1010MANDIR=/usr/share/man
  • trunk/debbuild

    r195 r196  
    3232use Config;
    3333
    34 my $version = "0.11.1"; #VERSION#
     34my $version = "0.11.2"; #VERSION#
    3535
    3636# regex debugger
     
    874874        my $altsource = 0;
    875875
    876         # yes, really.  It's not clear how this cascades down to %build or %install
    877         my $thistarballdir = $tarballdir;
    878 
    879876        my @sbits = split /\s+/;
    880877        shift @sbits;
    881878        while (my $sopt = shift @sbits) {
    882879          if ($sopt eq '-n') {
    883             $thistarballdir = shift @sbits;
     880            $tarballdir = shift @sbits;
    884881          } elsif ($sopt eq '-a') {
    885882            # shift, next opt must be numeric (which sourcenn:)
     
    920917        $prepscript .= "cd '$topdir/BUILD'\n";
    921918        $tarballdir = expandmacros($tarballdir,'gp');
    922         $prepscript .= "rm -rf '$thistarballdir'\n" if $deldir;
    923         $prepscript .= "/bin/mkdir -p $thistarballdir\n" if $changedir;
     919        $prepscript .= "rm -rf '$tarballdir'\n" if $deldir;
     920        $prepscript .= "/bin/mkdir -p $tarballdir\n" if $changedir;
    924921
    925922        if ($deftarball) {
    926           $prepscript .= "cd '$thistarballdir'\n" if $changedir;
     923          $prepscript .= "cd '$tarballdir'\n" if $changedir;
    927924          $prepscript .=
    928925                ( $pkgdata{main}{source} =~ /\.tar\.gz$/  ? "/bin/gzip"   : "" ).
     
    936933        if ($altsource) {
    937934          if ($altsource == 1) { # -a
    938             $prepscript .= "cd '$thistarballdir'\n";
     935            $prepscript .= "cd '$tarballdir'\n";
    939936            $prepscript .=
    940937                ( $pkgdata{sources}{$snum} =~ /\.tar\.gz$/  ? "/bin/gzip"   : "" ).
     
    954951                ( $quietunpack ? '' : 'vv' )."f -\n".
    955952                qq(STATUS=\$?\nif [ \$STATUS -ne 0 ]; then\n  exit \$STATUS\nfi\n);
    956             $prepscript .= "cd '$thistarballdir'\n";
     953            $prepscript .= "cd '$tarballdir'\n";
    957954          } # $altsource == 2
    958955        }
Note: See TracChangeset for help on using the changeset viewer.