summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-03-05 17:53:47 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-03-05 17:53:47 +0000
commit2dbbcd2144d8c53d7223a0dd709b80f90a6dde25 (patch)
tree7793ef43dbb2ad985ca0884f9f72bb7653bd3bbb /perl-install/any.pm
parent982c13b4bc6a3d34d09dc2e10a75e2f0651068f4 (diff)
downloaddrakx-2dbbcd2144d8c53d7223a0dd709b80f90a6dde25.tar
drakx-2dbbcd2144d8c53d7223a0dd709b80f90a6dde25.tar.gz
drakx-2dbbcd2144d8c53d7223a0dd709b80f90a6dde25.tar.bz2
drakx-2dbbcd2144d8c53d7223a0dd709b80f90a6dde25.tar.xz
drakx-2dbbcd2144d8c53d7223a0dd709b80f90a6dde25.zip
fix behaviour when only one lang is available (clicking
on "cancel" on the country selection didn't cancel it)
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm1
1 files changed, 1 insertions, 0 deletions
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;