1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 10:16:14 +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> <aggregatelist>
<aggregate project="%s"> <aggregate project="%s">
""" % (src_project) """ % (src_project)
for tgt, src in repo_map.iteritems():
aggregate_template += """\
<repository target="%s" source="%s" />
""" % (tgt, src)
aggregate_template += """\ aggregate_template += """\
<package>%s</package> <package>%s</package>
""" % ( src_package) """ % ( src_package)
if nosources: if nosources:
aggregate_template += """\ aggregate_template += """\
<nosources /> <nosources />
""" """
for src, tgt in repo_map.iteritems():
aggregate_template += """\
<repository target="%s" source="%s" />
""" % (tgt, src)
aggregate_template += """\ aggregate_template += """\
</aggregate> </aggregate>
</aggregatelist> </aggregatelist>