summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/Xconfig/card.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/perl-install/Xconfig/card.pm b/perl-install/Xconfig/card.pm
index 9496c9777..a483365d4 100644
--- a/perl-install/Xconfig/card.pm
+++ b/perl-install/Xconfig/card.pm
@@ -298,6 +298,7 @@ sub configure {
}
}
if (!$auto) {
+ card_config__not_listed:
card_config__not_listed($in, $cards[0], $options) or return;
}
@@ -305,7 +306,12 @@ sub configure {
xfree_and_glx_choose($in, $card, $auto) or return;
- $card->{prog} = install_server($card, $options, $do_pkgs);
+ eval {
+ $card->{prog} = install_server($card, $options, $do_pkgs);
+ } or do {
+ $in->ask_warn('', N("Can't install XFree package: %s", $@));
+ goto card_config__not_listed;
+ };
if ($card->{needVideoRam} && !$card->{VideoRam}) {
if ($auto) {