sort mirror names
authorPeter Palfrader <peter@palfrader.org>
Tue, 10 Sep 2019 20:25:49 +0000 (22:25 +0200)
committerPeter Palfrader <peter@palfrader.org>
Tue, 10 Sep 2019 20:25:49 +0000 (22:25 +0200)
modules/roles/templates/static-mirroring/static-components.conf.erb

index aa43c9a..fb89f46 100644 (file)
@@ -37,9 +37,10 @@ config['components'].each_pair do |component_name, component_conf|
                end
        end
 
-       exclude = component_conf['exclude-mirrors'].join(',')
+
+       exclude = component_conf['exclude-mirrors'].sort().join(',')
        exclude = '-' unless exclude != ""
-       extrapush = component_conf['extra-push'].join(',')
+       extrapush = component_conf['extra-push'].sort().join(',')
        extrapush = '-' unless extrapush != ""
 
        lines << "#{component_conf['master']} #{component_name} #{srchost} #{srcpath} #{extrapush} #{exclude}"