diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-09-05 10:19:18 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-09-05 10:19:18 +0000 |
commit | a66201e4c1d06fe1c3cc645077fae02b130ceeab (patch) | |
tree | 42dffef0708093b07b33daad891c315dc362887e /perl-install | |
parent | 17fbdb6a16a5f135538fe7636d2cc383de16ef7a (diff) | |
download | drakx-backup-do-not-use-a66201e4c1d06fe1c3cc645077fae02b130ceeab.tar drakx-backup-do-not-use-a66201e4c1d06fe1c3cc645077fae02b130ceeab.tar.gz drakx-backup-do-not-use-a66201e4c1d06fe1c3cc645077fae02b130ceeab.tar.bz2 drakx-backup-do-not-use-a66201e4c1d06fe1c3cc645077fae02b130ceeab.tar.xz drakx-backup-do-not-use-a66201e4c1d06fe1c3cc645077fae02b130ceeab.zip |
Don't crash when xorg-x11 is not available
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/install_steps_interactive.pm | 4 |
1 files changed, 3 insertions, 1 deletions
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?")); }; |