Wed Nov 02 01:39:08 2011: Request 72112 was acted upon.
Transaction: Ticket created by [email protected]
       Queue: PAR
     Subject: PAR::Dist META.json problem
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: [email protected]
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=72112 >


Hi all.

I've started to use PAR::Dist::FromCPAN to create standalone repository 
for my project, but during
compilation of some modules it fails. Some analysis show that this 
modules do not have proper META.yml
file but have META.json. In building time as I can see some data from 
this META.json are stored in MYMETA.yml.
In the code CPAN::Distribution module I have read that " # if MYMETA.yml 
exists, that takes precedence over META.yml".
So I've wrote small patch to fix problem with installation.

185,186c185,191
< 
<     if (open(OLD_META, "META.yml")) {
---
> 	
> 	 # if MYMETA.yml exists, that takes precedence over META.yml
>     my $meta_file_name = "META.yml";
> 	my $mymeta_file_name = "MYMETA.yml";
> 	$meta_file_name = -s $mymeta_file_name ? $mymeta_file_name : $meta_file_name;
> 	
>     if (open(OLD_META, $meta_file_name)) {

Reply via email to