summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-09-21 02:19:11 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-09-21 02:19:11 +0000
commit804b3d5a24475fd18f3f4a816ce6f58a7d4d41d7 (patch)
tree9a17f45e18913195c4c1fba04ec710a7d597ee3e /perl-install
parente323bb09f690d5a917f64d9708b9b3d0000bfee4 (diff)
downloaddrakx-backup-do-not-use-804b3d5a24475fd18f3f4a816ce6f58a7d4d41d7.tar
drakx-backup-do-not-use-804b3d5a24475fd18f3f4a816ce6f58a7d4d41d7.tar.gz
drakx-backup-do-not-use-804b3d5a24475fd18f3f4a816ce6f58a7d4d41d7.tar.bz2
drakx-backup-do-not-use-804b3d5a24475fd18f3f4a816ce6f58a7d4d41d7.tar.xz
drakx-backup-do-not-use-804b3d5a24475fd18f3f4a816ce6f58a7d4d41d7.zip
don't allow a broken X configuration to break mouse configuration
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/mouse.pm10
1 files changed, 6 insertions, 4 deletions
diff --git a/perl-install/mouse.pm b/perl-install/mouse.pm
index 52614e10a..959188276 100644
--- a/perl-install/mouse.pm
+++ b/perl-install/mouse.pm
@@ -438,10 +438,12 @@ sub write_conf {
&write($do_pkgs, $mouse);
$modules_conf->write if $mouse->{device} eq "usbmouse" && !$::testing;
- require Xconfig::xfree;
- my $xfree_conf = Xconfig::xfree->read;
- set_xfree_conf($mouse, $xfree_conf, $b_keep_auxmouse_unchanged);
- $xfree_conf->write;
+ eval {
+ require Xconfig::xfree;
+ my $xfree_conf = Xconfig::xfree->read;
+ set_xfree_conf($mouse, $xfree_conf, $b_keep_auxmouse_unchanged);
+ $xfree_conf->write;
+ }
}
sub change_mouse_live {