summaryrefslogtreecommitdiffstats
path: root/lib/Xconfig
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-01 09:20:39 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-01 09:20:39 +0000
commitc4e1b60d979840110fd9284868148745d619a1c1 (patch)
tree6a4f58dc86c41ac3dde1aeada7ae9204dec31afb /lib/Xconfig
parent9111bc27d0c1988dedef66070416424fa9464fb2 (diff)
downloaddrakx-kbd-mouse-x11-c4e1b60d979840110fd9284868148745d619a1c1.tar
drakx-kbd-mouse-x11-c4e1b60d979840110fd9284868148745d619a1c1.tar.gz
drakx-kbd-mouse-x11-c4e1b60d979840110fd9284868148745d619a1c1.tar.bz2
drakx-kbd-mouse-x11-c4e1b60d979840110fd9284868148745d619a1c1.tar.xz
drakx-kbd-mouse-x11-c4e1b60d979840110fd9284868148745d619a1c1.zip
ensure "Option" lines ordering is fixed so that XFdrake doesn't ask to save
config even when no options was changed
Diffstat (limited to 'lib/Xconfig')
-rw-r--r--lib/Xconfig/xfree.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Xconfig/xfree.pm b/lib/Xconfig/xfree.pm
index bbc78d4..197c93a 100644
--- a/lib/Xconfig/xfree.pm
+++ b/lib/Xconfig/xfree.pm
@@ -582,7 +582,7 @@ sub raw_export_section {
sub raw_import_section {
my ($section, $h, $o_fields) = @_;
- foreach ($o_fields ? grep { exists $h->{$_} } @$o_fields : keys %$h) {
+ foreach ($o_fields ? grep { exists $h->{$_} } @$o_fields : sort keys %$h) {
my @l = map { ref($_) eq 'HASH' ? $_ : { val => $_ } } deref_array($h->{$_});
$section->{$_} = (ref($h->{$_}) eq 'ARRAY' ? \@l : $l[0]);
}