Add patch from Ian Burrell to support .tgz archives.

This commit is contained in:
stevenpritchard
2006-07-01 23:16:09 +00:00
parent e1d5e86e0f
commit 4f51546ce6
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -2,6 +2,7 @@
* Exclude NINJA.
* Do a case-insensitive match on the possible licenses.
* Add a patch from Ian Burrell to support .tgz archives.
1.66 2006-05-16
+5 -1
View File
@@ -10,7 +10,7 @@
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# $Id: cpanspec,v 1.29 2006/05/25 00:33:47 stevenpritchard Exp $
# $Id: cpanspec,v 1.30 2006/07/01 23:16:09 stevenpritchard Exp $
our $NAME="cpanspec";
our $VERSION='1.67';
@@ -543,6 +543,10 @@ for my $file (@args) {
$name=$1;
$version=$2;
$type=$3;
} elsif ($file =~ /^(.*)-([^-]+)\.tgz$/) {
$name=$1;
$version=$2;
$type = 'tar';
} elsif ($file =~ /^(.*)-([^-]+)\.(zip)$/) {
$name=$1;
$version=$2;