Skip to content

Commit c5647ba

Browse files
committed
Write translations to unique files
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
1 parent 4330681 commit c5647ba

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

mmdzanata/cli.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,13 @@ def generate_metadata(ctx):
174174
ctx.parent.obj['debug']
175175
)
176176

177-
Modulemd.dump(sorted(translations), "%s.yaml" % (
178-
ctx.parent.obj['zanata_translation_document']))
177+
translation_file = "%s-%s.yaml" % (
178+
ctx.parent.obj['zanata_translation_document'],
179+
ctx.parent.obj['branch'])
180+
181+
Modulemd.dump(sorted(translations), translation_file)
179182

180-
print("Wrote modulemd-translations YAML to %s.yaml" % (
181-
ctx.parent.obj['zanata_translation_document']))
183+
print("Wrote modulemd-translations YAML to %s" % translation_file)
182184

183185

184186
if __name__ == "__main__":

0 commit comments

Comments
 (0)