On Wed, Aug 3, 2011 at 23:32, Bartosz Jakubski <b.jakubski@gmail.com> wrote:
Show quoted text> On Wed, Aug 3, 2011 at 16:55, Mark Overmeer via RT
> <bug-CPAN-Site@rt.cpan.org> wrote:
>
>>> I have no idea if this should be supported, but while preparing private CPAN with some older CPAN
>>> modules I found that for example
http://search.cpan.org/~chorny/Test-Warn-0.21/ was distributed as a
>>> .zip file, which CPAN::Site did not notice.
>>
>> It should be supported, yes, although very rare: no common tools produces
>> these files by default. Find attached my first (totally untested)
>> attempt. Can you test it for me?
>
> Quick test (with Test-Warn 0.21) says it is not working.
> I may have more time tomorrow to have a look at it in more detail.
>
After patching:
1. $zip regex needs 'x' modifier added
2. Don't try using $member->externalFileName as file name, as (at
least in that Test-Warn zip) it returns _zip file_ filepath, not a
member filepath
it seems to work.
--
-- Bartosz Jakubski -------------------