Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 38444
Status: resolved
Priority: 0/
Queue: CPANPLUS

People
Owner: Nobody in particular
Requestors: mutant.nz [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.84
Fixed in: (no value)



Subject: Setting allow_build_interactivity prevents force from working
Hi, The following code: use CPANPLUS::Backend; my $cb = CPANPLUS::Backend->new(); $cb->configure_object()->set_conf( 'allow_build_interactivity', 0 ); $cb->configure_object()->set_conf( 'force', 1 ); $cb->install( modules => ['Some-Module'] ); Will not install a module if it already exists on the system. However, turning on "allow_build_interactivity", it does install (as you would expect). Unless I've misinterpreted the meaning of these config values, this would seem to be a bug. (using perl 5.8.8 on Ubuntu 8.04). Thanks.
On Wed Aug 13 11:23:54 2008, Mutant wrote: Show quoted text
> The following code: > > use CPANPLUS::Backend; > > my $cb = CPANPLUS::Backend->new(); > $cb->configure_object()->set_conf( 'allow_build_interactivity', 0 ); > $cb->configure_object()->set_conf( 'force', 1 ); > > $cb->install( modules => ['Some-Module'] ); > > Will not install a module if it already exists on the system. However, > turning on "allow_build_interactivity", it does install (as you would > expect). > > Unless I've misinterpreted the meaning of these config values, this > would seem to be a bug. > > (using perl 5.8.8 on Ubuntu 8.04).
Hi, I'm not able to reproduce your problem. I'm using the following script: === use lib '../lib'; use strict; use CPANPLUS::Backend; my $name = shift or die; my $cb = CPANPLUS::Backend->new; $cb->configure_object->set_conf( 'allow_build_interactivity' => 0 ); $cb->configure_object->set_conf( 'force' => 1 ); $cb->configure_object->set_conf( verbose => 1 ); for( 1..2 ) { $cb->install( modules => [$name] ); } === And this installs the module of my choice twice in a row. Can you confirm that it does not install twice in a row for you? And if so, what version of CPANPLUS are you using? Cheers,
From: mutant.nz [...] gmail.com
Hi... Not sure what I was doing originally, but I can't duplicate this now, even with my own code above. Sorry about that. BTW, just wanted to say thanks for CPANPLUS. I was able to put together quite a flexible build system at work using it, after struggling to get anything going with CPAN.pm. Thanks, Sam.