in reply to Re^2: Creating a local CPAN server
in thread Creating a local CPAN server

I don't recall having this problem. However, I'd probably skip that test and force the install. Once the module is installed it's just a matter of running something like this to inject your module.
my $repo = CPAN::Mini::Inject->new; $repo->parsecfg( '/home/httpd/html/cpan/.cpancfg' ); $repo->add( module => $app_name, authorid => $app_owner, version => $app_version, file => "$app_dir/$app_file" ); $repo->writelist; $repo->inject;