1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

fix correct order in aggregate template

This commit is contained in:
Ludwig Nussel 2010-12-21 14:09:25 +01:00
parent a854423e86
commit fb77b7b9f8

View File

@ -3954,18 +3954,20 @@ def aggregate_pac(src_project, src_package, dst_project, dst_package, repo_map =
<aggregatelist>
<aggregate project="%s">
""" % (src_project)
for tgt, src in repo_map.iteritems():
aggregate_template += """\
<repository target="%s" source="%s" />
""" % (tgt, src)
aggregate_template += """\
<package>%s</package>
""" % ( src_package)
if nosources:
aggregate_template += """\
<nosources />
"""
for src, tgt in repo_map.iteritems():
aggregate_template += """\
<repository target="%s" source="%s" />
""" % (tgt, src)
aggregate_template += """\
</aggregate>
</aggregatelist>