summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-01 20:41:15 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-01 20:41:15 +0000
commita98ac657249ba4c28aabd28e317e9bc3a0680e9c (patch)
tree5387a391ee4e621efb74a42145c064633f9fb4f0 /perl-install/standalone.pm
parent771fd2005c6bf21a2503a3c27e797f84bd3d8acf (diff)
downloaddrakx-a98ac657249ba4c28aabd28e317e9bc3a0680e9c.tar
drakx-a98ac657249ba4c28aabd28e317e9bc3a0680e9c.tar.gz
drakx-a98ac657249ba4c28aabd28e317e9bc3a0680e9c.tar.bz2
drakx-a98ac657249ba4c28aabd28e317e9bc3a0680e9c.tar.xz
drakx-a98ac657249ba4c28aabd28e317e9bc3a0680e9c.zip
provide drakbug with the perl backtrace
Diffstat (limited to 'perl-install/standalone.pm')
-rw-r--r--perl-install/standalone.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/standalone.pm b/perl-install/standalone.pm
index 7e94d8ba9..cbebe70c3 100644
--- a/perl-install/standalone.pm
+++ b/perl-install/standalone.pm
@@ -184,10 +184,11 @@ our @common_functs = qw(renamef linkf symlinkf output substInFile mkdir_p rm_rf
our @builtin_functs = qw(chmod chown __exit exit unlink link symlink rename system);
our @drakx_modules = qw(Xconfig::card Xconfig::default Xconfig::main Xconfig::monitor Xconfig::parse Xconfig::proprietary Xconfig::resolution_and_depth Xconfig::screen Xconfig::test Xconfig::various Xconfig::xfree any bootloader bootlook c commands crypto detect_devices devices diskdrake diskdrake::hd_gtk diskdrake::interactive diskdrake::removable diskdrake::removable_gtk diskdrake::smbnfs_gtk fs fsedit http keyboard lang log loopback lvm modules::parameters modules mouse my_gtk network network::adsl network::ethernet network::connection network::isdn_consts network::isdn network::modem network::netconnect network::network fs::remote::nfs fs::remote::smb network::tools partition_table partition_table_bsd partition_table::dos partition_table::empty partition_table::gpt partition_table::mac partition_table::raw partition_table::sun printer printerdrake proxy raid run_program scanner services steps swap timezone network::drakfirewall network::shorewall);
-sub bug_handler() {
+sub bug_handler {
+ my ($error) = @_;
my $progname = $0;
$progname =~ s|.*/||;
- exec("drakbug --incident $progname")
+ exec('drakbug', if_($error, '--error', $error), '--incident', $progname,);
}
$SIG{SEGV} = \&bug_handler;
$SIG{__DIE__} = \&bug_handler;