From c64f9621fa8592d2b4e388fb63116c372d873b75 Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Sat, 4 Feb 2023 01:37:16 +0100 Subject: [PATCH] Abspath for existing_updateinfo_path --- apollo/publishing_tools/apollo_tree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apollo/publishing_tools/apollo_tree.py b/apollo/publishing_tools/apollo_tree.py index faa5bb2..2929ece 100644 --- a/apollo/publishing_tools/apollo_tree.py +++ b/apollo/publishing_tools/apollo_tree.py @@ -199,8 +199,8 @@ async def update_repomd_xml(repomd_xml_path: str, updateinfo: dict): # Get the location of the updateinfo file location = data.find("location", NS) location_href = location.attrib["href"] - existing_updateinfo_path = os.path.join( - repomd_xml_path, "../..", location_href + existing_updateinfo_path = os.path.abspath( + os.path.join(repomd_xml_path, "../..", location_href) ) # Delete the data element