Changeset 149


Ignore:
Timestamp:
01/05/09 11:43:06 (15 years ago)
Author:
kdeugau
Message:

/trunk

Allow uncompressed tarballs, and .tgz tarballs
Handle %{SOURCE0} properly (well, er, better...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r148 r149  
    867867      } elsif (/^source0?:\s*(.+)/i) {
    868868        $pkgdata{main}{source} = $1;
    869         die "Unknown tarball format $1\n" if $1 !~ /\.tar\.(?:gz|bz2)$/;
     869        # .tar, .tar.gz, .tar.bz2, .tgz
     870        die "Unknown tarball format $1\n" if $1 !~ /\.(?:tar(?:\.(?:gz|bz2))?|tgz)$/;
    870871      } elsif (/^source([0-9]+):\s*(.+)/i) {
    871872        $pkgdata{sources}{$1} = $2;
     
    15941595  if ($section =~ /p/) {
    15951596    $macrostring =~ s/\%\{buildroot\}/$specglobals{buildroot}/gi;
     1597    $macrostring =~ s/\%\{source0?}/$topdir\/SOURCES\/$pkgdata{main}{source}/gi;
    15961598    foreach my $source (keys %{$pkgdata{sources}}) {
    15971599      $macrostring =~ s/\%\{source$source\}/$topdir\/SOURCES\/$pkgdata{sources}{$source}/gi;
Note: See TracChangeset for help on using the changeset viewer.