diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-03-08 18:22:51 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-03-08 18:22:51 +0000 |
commit | 1a2b7368e1192f501fa5a10f989df26d7575a559 (patch) | |
tree | d893d96857411434db8d686cc6fd5f31d31cb056 /perl-install/install/install2.pm | |
parent | 670c3db8eca8ca16a78254372c893ce1d8ba8269 (diff) | |
download | drakx-1a2b7368e1192f501fa5a10f989df26d7575a559.tar drakx-1a2b7368e1192f501fa5a10f989df26d7575a559.tar.gz drakx-1a2b7368e1192f501fa5a10f989df26d7575a559.tar.bz2 drakx-1a2b7368e1192f501fa5a10f989df26d7575a559.tar.xz drakx-1a2b7368e1192f501fa5a10f989df26d7575a559.zip |
(SEGV handler) simplify checking whether interactive was set up or not
Diffstat (limited to 'perl-install/install/install2.pm')
-rw-r--r-- | perl-install/install/install2.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/install/install2.pm b/perl-install/install/install2.pm index 8917834e2..25ead647d 100644 --- a/perl-install/install/install2.pm +++ b/perl-install/install/install2.pm @@ -26,7 +26,6 @@ use any; use log; use fs; use fs::any; -use Scalar::Util qw(blessed dualvar); #-####################################################################################### @@ -321,7 +320,7 @@ sub main { $SIG{SEGV} = sub { my $msg = "segmentation fault: install crashed (maybe memory is missing?)\n" . backtrace(); log::l("$msg\n"); - blessed($o) and $o->ask_warn('', $msg); + UNIVERSAL::can($o, 'ask_warn') and $o->ask_warn('', $msg); setVirtual(1); require install::steps_auto_install; install::steps_auto_install_non_interactive::errorInStep($o, $msg); |