]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1221998 - Make sure localconfig is generated deterministically
authorPhilippe M. Chiasson <gozer@mozilla.com>
Thu, 5 Nov 2015 21:33:53 +0000 (21:33 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Thu, 5 Nov 2015 21:33:53 +0000 (21:33 +0000)
Bugzilla/Install/Localconfig.pm

index 0ca40ed1b365bb562e15d8e3dc366bdb0f56b41c..2e2eb893266bc8f718bdc10e85139cdfb1830870 100644 (file)
@@ -259,6 +259,9 @@ sub update_localconfig {
 
     my $filename = bz_locations->{'localconfig'};
 
+    # Ensure output is sorted and deterministic
+    local $Data::Dumper::Sortkeys = 1;
+
     # Move any custom or old variables into a separate file.
     if (scalar @old_vars) {
         my $filename_old = "$filename.old";