mirror of
https://github.com/resf/distro-tools.git
synced 2024-11-21 20:51:27 +00:00
Fix existing_updateinfo_path
This commit is contained in:
parent
fe376df854
commit
70aa9d3466
@ -199,7 +199,10 @@ async def update_repomd_xml(repomd_xml_path: str, updateinfo: dict):
|
|||||||
if data_type == "updateinfo":
|
if data_type == "updateinfo":
|
||||||
# Get the location of the updateinfo file
|
# Get the location of the updateinfo file
|
||||||
location = data.find("location", NS)
|
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
|
# Delete the data element
|
||||||
repomd_xml.remove(data)
|
repomd_xml.remove(data)
|
||||||
|
Loading…
Reference in New Issue
Block a user