Changeset 27376


Ignore:
Timestamp:
2011-07-03T17:00:24+02:00 (7 years ago)
Author:
jow
Message:

[scripts] download.pl: cope with potential two-digit linux versions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/download.pl

    r25589 r27376  
    137137        } elsif ($mirror =~ /^\@KERNEL\/(.+)$/) { 
    138138                my @extra = ( $1 ); 
    139                 if ($filename =~ /linux-\d+\.\d+\.\d+-rc/) { 
     139                if ($filename =~ /linux-\d+\.\d+(?:\.\d+)?-rc/) { 
    140140                        push @extra, "$extra[0]/testing"; 
    141                 } elsif ($filename =~ /linux-(\d+\.\d+\.\d+)/) { 
     141                } elsif ($filename =~ /linux-(\d+\.\d+(?:\.\d+)?)/) { 
    142142                        push @extra, "$extra[0]/longterm/v$1"; 
    143143                }                
Note: See TracChangeset for help on using the changeset viewer.