diff options
Diffstat (limited to 'modules/buildsystem/templates/media.cfg')
-rw-r--r-- | modules/buildsystem/templates/media.cfg | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/modules/buildsystem/templates/media.cfg b/modules/buildsystem/templates/media.cfg index 3ac06bce..bdd5d813 100644 --- a/modules/buildsystem/templates/media.cfg +++ b/modules/buildsystem/templates/media.cfg @@ -15,7 +15,8 @@ end def media_out(name, media_hash) media_out = "[%s]\n" % name - media_hash.each{|key, value| + media_hash.keys.sort.each{|key| + value = media_hash[key] if value != nil media_out += "%s=%s\n" % [ key, value ] end @@ -32,8 +33,10 @@ arch=<%= @arch %> xml-info=1 <%- -distro['medias'].each{|medianame, media| - media['repos'].each{|reponame, repo| +distro['medias'].keys.sort.each{|medianame| + media = distro['medias'][medianame] + media['repos'].keys.sort.each{|reponame| + repo = media['repos'][reponame] media_types = [] if media['media_types'] != nil media_types += media['media_types'] @@ -100,8 +103,10 @@ distro['medias'].each{|medianame, media| } } if distro['based_on'] != nil - distro['based_on'].each{|bdistroname, bdistro| - bdistro.each{|medianame, media| + distro['based_on'].keys.sort.each{|bdistroname| + bdistro = distro['based_on'][bdistroname] + bdistro.keys.sort.each{|medianame| + media = bdistro[medianame] for reponame in media -%><%= media_out [ bdistroname, medianame, reponame ].join('/'), |