Perl-Dist-WiX

changeset 1048:e43a36f906fe

Fix installation of CPAN upgrades.
author Curtis Jewell <perl@curtisjewell.name>
date Wed Jun 08 06:55:01 2011 -0600 (2011-06-08)
parents 7af86c340b19
children 577482ccb4e3
files lib/Perl/Dist/WiX/Mixin/BuildPerl.pm
line diff
     1.1 --- a/lib/Perl/Dist/WiX/Mixin/BuildPerl.pm	Mon Jun 06 23:51:31 2011 -0600
     1.2 +++ b/lib/Perl/Dist/WiX/Mixin/BuildPerl.pm	Wed Jun 08 06:55:01 2011 -0600
     1.3 @@ -248,12 +248,18 @@
     1.4  				$self->_install_cpan_module( $module, $default_force );
     1.5  			}
     1.6  
     1.7 +			when (m{/version-\d}msx) {
     1.8 +
     1.9 +				if ($self->fragment_exists('version')) {
    1.10 +					next; # It's getting installed twice on 5.14.0 for some weird reason.
    1.11 +				}
    1.12 +			}
    1.13 +
    1.14  			when (m{/\QDevel-DProf-20110228}msx) {
    1.15  
    1.16 -				#errors in tests, and this version does not contains
    1.17 -				#any useful changes
    1.18 -				#already patched in repository
    1.19 -				next
    1.20 +				# Force installation of Devel::DProf, as it fails tests, but
    1.21 +				# needs to be installed on 5.14.0.
    1.22 +				$self->_install_cpan_module( $module, 1 );
    1.23  			}
    1.24  
    1.25  			default {
    1.26 @@ -478,6 +484,7 @@
    1.27  		  : (),
    1.28  	);
    1.29  #>>>
    1.30 +
    1.31  	return 1;
    1.32  } ## end sub _install_cpan_module
    1.33