Subject: | Patch to add bzip2 support |
Some distributions are using the .tar.bz2 format to upload to CPAN, and
some of the CPAN Testers tools are using CPAN::Distnameinfo to
disassemble the package components. As this bzip2 format isn't currently
support in C::D, we are munging the path before we pass it through.
Attached is a patch to add support for this archive format.
Cheers,
Barbie.
Subject: | bzip2.patch |
/CPAN-Distnameinfo/CPAN-DistnameInfo-0.06/lib/CPAN/DistnameInfo.pm Mon Sep 20 22:42:26 2004
/CPAN-Distnameinfo/CPAN-DistnameInfo-0.06_01/lib/CPAN/DistnameInfo.pm Mon Sep 29 19:44:14 2008
@@ -65,7 +65,7 @@
($info{filename} = $distfile) =~ s,^(((.*?/)?authors/)?id/)?([A-Z])/(\4[A-Z])/(\5[-A-Z0-9]*)/,,
and $info{cpanid} = $6;
- if ($distfile =~ m,([^/]+)\.(tar\.g?z|zip|tgz)$,i) { # support more ?
+ if ($distfile =~ m,([^/]+)\.(tar\.(?:g?z|bz2)|zip|tgz)$,i) {
$info{distvname} = $1;
$info{extension} = $2;
}
/CPAN-Distnameinfo/CPAN-DistnameInfo-0.06/t/ext.t Mon Sep 20 22:42:25 2004
/CPAN-Distnameinfo/CPAN-DistnameInfo-0.06_01/t/ext.t Mon Sep 29 19:41:22 2008
@@ -1,5 +1,5 @@
-use Test::More tests => 554;
+use Test::More tests => 557;
use Data::Dumper;
use CPAN::DistnameInfo;
@@ -569,3 +569,6 @@
CONFIG-V0.99.11.tar.gz CONFIG V0.99.11
collate/Unicode-Collate-Standard-V3_1_1-0.1.tar.gz Unicode-Collate-Standard-V3_1_1 0.1
P4-1.1733.tar.gz P4 1.1733
+Net-Vypress-Chat-0.72.1.tar.bz2 Net-Vypress-Chat 0.72.1
+Gopher-Server-0.1.1.tar.bz2 Gopher-Server 0.1.1
+HTML-Template-Dumper-0.1.tar.bz2 HTML-Template-Dumper 0.1