From 70aa9d346655369b5247cce0f102d0145f6c4df2 Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Sat, 4 Feb 2023 01:33:46 +0100 Subject: [PATCH] Fix existing_updateinfo_path --- apollo/publishing_tools/apollo_tree.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apollo/publishing_tools/apollo_tree.py b/apollo/publishing_tools/apollo_tree.py index 5bde82d..b37d71a 100644 --- a/apollo/publishing_tools/apollo_tree.py +++ b/apollo/publishing_tools/apollo_tree.py @@ -199,7 +199,10 @@ async def update_repomd_xml(repomd_xml_path: str, updateinfo: dict): if data_type == "updateinfo": # Get the location of the updateinfo file location = data.find("location", NS) - existing_updateinfo_path = location.attrib["href"] + location_href = location.attrib["href"] + existing_updateinfo_path = os.path.join( + repomd_xml_path, "../..", location_href + ) # Delete the data element repomd_xml.remove(data)