From 8fba473a17988171ffef490d6b76eb1264df055a Mon Sep 17 00:00:00 2001 From: Quirin Pamp Date: Thu, 8 Apr 2021 09:35:48 +0200 Subject: [PATCH] Fix translation file synchronization Backports #8410 Fixes #8556 https://pulp.plan.io/issues/8556 https://pulp.plan.io/issues/8410 https://pulp.plan.io/issues/8096 (cherry picked from commit 580f0e725a3a47e181eb582fbe8ba33a35c5b1e6) --- CHANGES/8556.bugfix | 2 ++ pulp_deb/app/tasks/synchronizing.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 CHANGES/8556.bugfix diff --git a/CHANGES/8556.bugfix b/CHANGES/8556.bugfix new file mode 100644 index 000000000..052a685dd --- /dev/null +++ b/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) diff --git a/pulp_deb/app/tasks/synchronizing.py b/pulp_deb/app/tasks/synchronizing.py index 754f61427..e97856226 100644 --- a/pulp_deb/app/tasks/synchronizing.py +++ b/pulp_deb/app/tasks/synchronizing.py @@ -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: