From 4f51546ce6af35f2f927dcdc2870707cc99e89ce Mon Sep 17 00:00:00 2001 From: stevenpritchard Date: Sat, 1 Jul 2006 23:16:09 +0000 Subject: [PATCH] Add patch from Ian Burrell to support .tgz archives. --- Changes | 1 + cpanspec | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 96fd038..4324602 100644 --- a/Changes +++ b/Changes @@ -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 diff --git a/cpanspec b/cpanspec index e6b259d..e413663 100755 --- a/cpanspec +++ b/cpanspec @@ -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;