diff --git a/inst/lib/Bric/Inst.pm b/inst/lib/Bric/Inst.pm index 7bafde326..627a601a7 100644 --- a/inst/lib/Bric/Inst.pm +++ b/inst/lib/Bric/Inst.pm @@ -41,13 +41,28 @@ use strict; use File::Spec::Functions qw(catdir tmpdir catfile); eval { require Term::ReadPassword; import Term::ReadPassword 'read_password' }; if ($@) { - print "#" x 79, "\n\n", <new; + $term->getattr($fd_stdin); + my $oflags = $term->getlflag; + my $no_echo = $oflags & ~(ISIG | ECHO | ICANON); + $term->setlflag($no_echo); + $term->setattr($fd_stdin, TCSAFLUSH); + my $answer = ; + $term->setlflag($oflags); + $term->setattr($fd_stdin, TCSAFLUSH); + chomp $answer; + print $/; + return $answer; + } + }; } + require Exporter; use base 'Exporter'; our @EXPORT_OK = qw(soft_fail hard_fail ask_yesno ask_confirm ask_choice diff --git a/lib/Bric/Changes.pod b/lib/Bric/Changes.pod index af301f37c..f8af0990a 100644 --- a/lib/Bric/Changes.pod +++ b/lib/Bric/Changes.pod @@ -22,6 +22,12 @@ When displaying categories associated with a story when the C F directive is true, the categories are now displayed in alphabetical order by URI. [David] +=item * + +The installer no longer requires that L be installed from +the CPAN before it continues. It will use it if it finds it, but if not +substitutes a simple implementation that does the trick (Bug #136). [David] + =back =head2 Bug Fixes