'CPANPLUS' =>
{
'MAINTAINER' => 'kane',
- 'DISTRIBUTION' => 'KANE/CPANPLUS-0.88.tar.gz',
+ 'DISTRIBUTION' => 'BINGOS/CPANPLUS-0.89_02.tar.gz',
'FILES' => q[cpan/CPANPLUS],
'EXCLUDED' => [ qr{^inc/},
qr{^t/dummy-.*\.hidden$},
### XXX remove this list and move it into selfupdate, somehow..
### this is dual administration
{ my $query_list = {
- 'File::Fetch' => '0.13_02',
- 'YAML::Tiny' => '0.0',
- 'File::Temp' => '0.0',
+ 'File::Fetch' => '0.13_02',
+ 'Parse::CPAN::Meta' => '0.0',
+ 'File::Temp' => '0.0',
};
my $send_list = {
do { local $/; <$fh> };
};
- my ($aref) = eval { YAML::Tiny::Load( $res ) };
+ my ($aref) = eval { Parse::CPAN::Meta::Load( $res ) };
if( $@ ) {
error(loc("Error reading result: %1", $@));
### version of perl (5.8.6+ and 5.9.2-4 at the time of writing)
### 'Config' is not recognized as a core module. See this bug:
### http://rt.cpan.org/Ticket/Display.html?id=32155
- if( not $obj and not $sub->( $prq_name ) ) {
+ if( !$obj and !$sub->( $prq_name ) ) {
msg(loc( "Prerequisite '%1' for '%2' could not be obtained".
" from CPAN -- sending N/A grade",
$prq_name, $name ), $verbose );
last GRADE;
}
- if( $cb->_vcmp( $prq_ver, $obj->installed_version ) > 0 ) {
+ if ( !$obj ) {
+ my $vcore = $sub->( $prq_name );
+ if ( $cb->_vcmp( $prq_ver, $vcore ) > 0 ) {
+ msg(loc( "Version of core module '%1' ('%2') is too low for ".
+ "'%3' (needs '%4') -- sending N/A grade",
+ $prq_name, $vcore,
+ $name, $prq_ver ), $verbose );
+
+ $grade = GRADE_NA;
+ last GRADE;
+ }
+ }
+
+ if( $obj and $cb->_vcmp( $prq_ver, $obj->installed_version ) > 0 ) {
msg(loc( "Installed version of '%1' ('%2') is too low for ".
"'%3' (needs '%4') -- sending N/A grade",
$prq_name, $obj->installed_version,
### if we're explicitly asked to update the sources, or if the
### standard source files are out of date, update the custom sources
### as well
+ ### RT #47820: Don't try to update custom sources if they are disabled
+ ### in the configuration.
$self->__update_custom_module_sources( verbose => $verbose )
- if $update_source or !$uptodate;
+ if $conf->get_conf('enable_custom_sources') and ( $update_source or !$uptodate );
return $uptodate;
}