Date: | Wed, 05 Jan 2005 19:40:45 +0100 |
From: | Max Maischein <corion [...] cpan.org> |
To: | bug-Module-Build [...] rt.cpan.org |
Subject: | Module::Build 0.27 y_n enters endless loop in unattended mode |
Hello,
once again, Module::Build produced a nice endless loop while running
tests in unattended mode. The usage of Module::Build by
iCal::Parser::SAX produces an endless loop, as it calls
$build->y_n('Would you like to install ical2xml, a command line
frontend?')
without supplying a default value.
Module::Build should B<not> allow that. It should always enforce a
default or fail building if the module is running unattended and no
default was supplied. In no case it should enter an endless loop
repeating the question with the comment
Please answer 'y' or 'n'
until the process runs out of resources.
Of course, an easy fix would be if the author used Module::Build in the
"correct" way, but allowing the users of Module::Build to make such
mistakes when a safeguard is easily implmented on Module::Builds side is
wrong.
-max