diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-03-22 16:27:33 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-03-22 16:27:33 +0000 |
commit | acddb352ae4cf5d0d93449843f29ebd61f530809 (patch) | |
tree | 246cbd9da50d95b8727a3f0f328543c49c01a1f1 /perl-install/Xconfig/xfree.pm | |
parent | bb895bbaadb5b4e5132bfb28b5f4ee68eae812cd (diff) | |
download | drakx-acddb352ae4cf5d0d93449843f29ebd61f530809.tar drakx-acddb352ae4cf5d0d93449843f29ebd61f530809.tar.gz drakx-acddb352ae4cf5d0d93449843f29ebd61f530809.tar.bz2 drakx-acddb352ae4cf5d0d93449843f29ebd61f530809.tar.xz drakx-acddb352ae4cf5d0d93449843f29ebd61f530809.zip |
try a little harder to know if we must write the config file.
this is still not enough though
Diffstat (limited to 'perl-install/Xconfig/xfree.pm')
-rw-r--r-- | perl-install/Xconfig/xfree.pm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/perl-install/Xconfig/xfree.pm b/perl-install/Xconfig/xfree.pm index d1d45e406..eadceda3f 100644 --- a/perl-install/Xconfig/xfree.pm +++ b/perl-install/Xconfig/xfree.pm @@ -19,15 +19,20 @@ sub _conf_files() { ################################################################################ # I/O ########################################################################## ################################################################################ -sub read { +sub read_and_prepare_write { my ($class) = @_; my $file = find { -f $_ } _conf_files(); my $raw_X = $class->new(Xconfig::parse::read_XF86Config($file)); + my $before = $raw_X->prepare_write; if (my ($Keyboard) = $raw_X->get_InputDevices('Keyboard')) { $Keyboard->{Driver}{val} = 'keyboard'; } - $raw_X; + $raw_X, $before; +} +sub read { + my ($class) = @_; + first(read_and_prepare_write($class)); } sub write { my ($raw_X, $o_file) = @_; |