Subject: | [PATCH] add .tar.bz2 as possible extension of files |
There are several distributions on the CPAN that use this extension. We
use your module in CPAN2RT importer, so it's pretty important.
--
Best regards, Ruslan.
Subject: | CPAN-DistnameInfo-0.06-dist_extensions.patch |
diff -ru CPAN-DistnameInfo-0.06/lib/CPAN/DistnameInfo.pm CPAN-DistnameInfo-0.06-my/lib/CPAN/DistnameInfo.pm
--- CPAN-DistnameInfo-0.06/lib/CPAN/DistnameInfo.pm 2004-09-21 01:42:26.000000000 +0400
+++ CPAN-DistnameInfo-0.06-my/lib/CPAN/DistnameInfo.pm 2008-06-30 16:11:22.000000000 +0400
@@ -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) { # support more ?
$info{distvname} = $1;
$info{extension} = $2;
}