Subject: | Silent Installs broken in 0.54 |
Date: | Wed, 2 May 2007 05:17:03 -0500 |
To: | <bug-Crypt-SSLeay [...] rt.cpan.org> |
From: | "Martin, Jeremy" <jmartin [...] gsihosting.com> |
I have a perl application that requires a bunch of CPAN modules. I wrote
a script to make it easy to install the modules, but it appears that the
new version 0.54 asks a question at install time which can't be avoided,
so its breaking my installer script. I need to be able to run this
installer script without any human interaction at all, so for now I'm
making it install 0.53 to avoid this problem. This is on RedHat ES3/4
and Ubuntu 6.10 systems.
The new version is asking this question:
Do you want to run the live tests (y/N) ? [N]
I looked through the Makefile.PL code but the only GetOptLong options
being used are the path to ssl and the -default option which does not
effect this new question.
Here is what my install script looked like basically:
#!/usr/bin/perl -w
use strict;
use CPAN;
CPAN::Shell->o('conf','makepl_arg','--default');
CPAN::Shell->install('Crypt::SSLeay');
I had to change that last line to this for now:
CPAN::Shell->install('D/DL/DLAND/Crypt-SSLeay-0.53.tar.gz');
If a new command line option is added, network_tests or whatever, I
guess it would look like this instead?
CPAN::Shell->o('conf','makepl_arg','--default --network-tests=no');
CPAN::Shell->install('Crypt::SSLeay');