Changeset 183


Ignore:
Timestamp:
06/07/15 11:47:13 (9 years ago)
Author:
kdeugau
Message:

/trunk

Handle trailing whitespace on Sourcenn: header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r182 r183  
    10531053        $specglobals{buildroot} = $1;
    10541054      } elsif (my ($sval) = /^source0?:\s*(.+)/i) {
     1055        $sval =~ s/\s*$//;
    10551056        $pkgdata{main}{source} = $sval;
    10561057        # Do this here since we don't use any URL forms elsewhere (maybe some other time)
    1057         $pkgdata{main}{source} =~ s|^.+/([^/]+)$|$sval|;
     1058        $pkgdata{main}{source} =~ s|^.+/([^/]+)$|$1|;
    10581059        $pkgdata{sources}{0} = $pkgdata{main}{source};
    10591060        # .tar, .tar.gz, .tar.bz2, .tgz, .xz
    1060         die "Unknown tarball format $1\n" if $1 !~ /\.(?:tar(?:\.(?:gz|bz2|xz))?|tgz)$/;
     1061        die "Unknown Source: header format $sval\n" if $sval !~ /\.(?:tar(?:\.(?:gz|bz2|xz))?|tgz)$/;
    10611062      } elsif (my ($srcnum, $src) = (/^source([0-9]+):\s*(.+)/i)) {
     1063        $src =~ s/\s*$//;
    10621064        $pkgdata{sources}{$srcnum} = $src;
    10631065        # Do this here since we don't use any URL forms elsewhere (maybe some other time)
Note: See TracChangeset for help on using the changeset viewer.