thaljef / Pinto

Curate your own repository of Perl modules
https://metacpan.org/module/Pinto::Manual
66 stars 49 forks source link

Error importing APR::Request #175

Closed Grissom2nd closed 9 years ago

Grissom2nd commented 9 years ago

pinto -r /home/vagrant/repo pull APR::Request Unable to extract packages from libapreq2-2.13.tar.gz: Failed to upconvert metadata to 1.2. Errors: Missing mandatory field, 'file' (provides -> APR::Request::CGI -> file) [Validation: 1.2] Missing mandatory field, 'file' (provides -> APR::Request::Error -> file) [Validation: 1.2] Missing mandatory field, 'file' (provides -> Apache2::Request -> file) [Validation: 1.2] Missing mandatory field, 'file' (provides -> APR::Request::Param -> file) [Validation: 1.2] Missing mandatory field, 'file' (provides -> APR::Request::Cookie -> file) [Validation: 1.2] Missing mandatory field, 'file' (provides -> Apache2::Upload -> file) [Validation: 1.2] Missing mandatory field, 'file' (provides -> APR::Request -> file) [Validation: 1.2] Missing mandatory field, 'file' (provides -> APR::Request::Apache2 -> file) [Validation: 1.2] Missing mandatory field, 'file' (provides -> Apache2::Cookie -> file) [Validation: 1.2] at /usr/local/share/perl/5.10.1/Dist/Metadata.pm line 188.

I'm not shure, who's turn this is, because "Metadata.pm" ist not a pinto-modul, isn't it? rgds

thaljef commented 9 years ago

Is ISAAC/libapreq2-2.13 the distribution you're after?

Grissom2nd commented 9 years ago

Yes. Seems, there are missing some fields in META.yml.

thaljef commented 9 years ago

Of all distributions ever released to CPAN, about 2% of them cannot be stored by Pinto, usually due to invalid metadata. I don't have a systematic way of solving this yet. For now, these are your workarounds:

If you do the latter, it is probably wise to pin that distribution too. You may also want to use the original author's PAUSE ID instead of your own, but that is mostly just a cosmetic detail.

At one time, I was going to create a public Pinto repository where people could deposit patched versions of those broken modules, and then everyone could use them. But I never got it fully working.

Sorry I don't have a better answer for you.

thaljef commented 9 years ago

This looks resolved (as best it can be).