From 2dbbcd2144d8c53d7223a0dd709b80f90a6dde25 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Wed, 5 Mar 2003 17:53:47 +0000 Subject: fix behaviour when only one lang is available (clicking on "cancel" on the country selection didn't cancel it) --- perl-install/any.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'perl-install/any.pm') diff --git a/perl-install/any.pm b/perl-install/any.pm index c42583384..ad55cfde4 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -668,6 +668,7 @@ when your installation is complete and you restart your system.")), } else { my @langs = sort { lang::l2name($a) cmp lang::l2name($b) } lang::list_langs(exclude_non_installed => 1); + die 'one lang only' if @langs == 1; $in->ask_from_($common, [ { val => \$lang, type => 'list', format => sub { lang::l2name($_[0]) }, list => \@langs } ]) or return; -- cgit v1.2.1