From c4e1b60d979840110fd9284868148745d619a1c1 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 1 Aug 2007 09:20:39 +0000 Subject: ensure "Option" lines ordering is fixed so that XFdrake doesn't ask to save config even when no options was changed --- lib/Xconfig/xfree.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Xconfig/xfree.pm') 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]); } -- cgit v1.2.1