Skip to content

Commit

Permalink
Fix translation file synchronization
Browse files Browse the repository at this point in the history
  • Loading branch information
quba42 committed Apr 14, 2021
1 parent 69fc935 commit 8fba473
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES/8556.bugfix
@@ -0,0 +1,2 @@
Fixed the relative paths for translation files, which were causing sync failures and missing translation files.
(Backported from https://pulp.plan.io/issues/8410)
2 changes: 1 addition & 1 deletion pulp_deb/app/tasks/synchronizing.py
Expand Up @@ -668,7 +668,7 @@ async def _handle_translation_files(self, release_file, release_component, file_
paths = [path for path in file_references.keys() if path.startswith(translation_dir)]
translations = {}
for path in paths:
relative_path = os.path.join(os.path.dirname(release_file.relative_path))
relative_path = os.path.join(os.path.dirname(release_file.relative_path), path)
d_artifact = self._to_d_artifact(relative_path, file_references[path])
key, ext = os.path.splitext(relative_path)
if key not in translations:
Expand Down

0 comments on commit 8fba473

Please sign in to comment.