From a66201e4c1d06fe1c3cc645077fae02b130ceeab Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Mon, 5 Sep 2005 10:19:18 +0000 Subject: Don't crash when xorg-x11 is not available --- perl-install/install_steps_interactive.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm index cd73e1749..976889eaf 100644 --- a/perl-install/install_steps_interactive.pm +++ b/perl-install/install_steps_interactive.pm @@ -1137,7 +1137,9 @@ sub summary { }; my $check_complete = sub { - $o->{raw_X} || !$::testing && !pkgs::packageByName($o->{packages}, 'xorg-x11')->flag_installed || + require pkgs; + my $p = pkgs::packageByName($o->{packages}, 'xorg-x11'); + $o->{raw_X} || !$::testing && $p && !$p->flag_installed || $o->ask_yesorno('', N("You have not configured X. Are you sure you really want this?")); }; -- cgit v1.2.1