summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfig/xfreeX.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-02-05 13:34:08 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-02-05 13:34:08 +0000
commit702d47173101dd8bb132cb22170f38bf82b55344 (patch)
tree27d22d6f80b0693281dc50ada5a64bee7a2e6421 /perl-install/Xconfig/xfreeX.pm
parent8b346ef435ed5dd491b2e49a278b5b746e6dd142 (diff)
downloaddrakx-702d47173101dd8bb132cb22170f38bf82b55344.tar
drakx-702d47173101dd8bb132cb22170f38bf82b55344.tar.gz
drakx-702d47173101dd8bb132cb22170f38bf82b55344.tar.bz2
drakx-702d47173101dd8bb132cb22170f38bf82b55344.tar.xz
drakx-702d47173101dd8bb132cb22170f38bf82b55344.zip
- add ->prepare_write to allow comparing raw_X's
- ensure "config_changed" is returned only if the config file really changed
Diffstat (limited to 'perl-install/Xconfig/xfreeX.pm')
-rw-r--r--perl-install/Xconfig/xfreeX.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/Xconfig/xfreeX.pm b/perl-install/Xconfig/xfreeX.pm
index b6223a7fa..7d830ddee 100644
--- a/perl-install/Xconfig/xfreeX.pm
+++ b/perl-install/Xconfig/xfreeX.pm
@@ -26,6 +26,10 @@ sub write {
rename $file, "$file.old";
Xconfig::parse::write_XF86Config($raw_X, $file);
}
+sub prepare_write {
+ my ($raw_X) = @_;
+ join('', Xconfig::parse::prepare_write_XF86Config($raw_X));
+}
my @monitor_fields = qw(VendorName ModelName HorizSync VertRefresh);