mirror of
https://github.com/resf/distro-tools.git
synced 2024-11-25 14:41:28 +00:00
Abspath for existing_updateinfo_path
This commit is contained in:
parent
7287bb38eb
commit
c64f9621fa
@ -199,8 +199,8 @@ async def update_repomd_xml(repomd_xml_path: str, updateinfo: dict):
|
|||||||
# Get the location of the updateinfo file
|
# Get the location of the updateinfo file
|
||||||
location = data.find("location", NS)
|
location = data.find("location", NS)
|
||||||
location_href = location.attrib["href"]
|
location_href = location.attrib["href"]
|
||||||
existing_updateinfo_path = os.path.join(
|
existing_updateinfo_path = os.path.abspath(
|
||||||
repomd_xml_path, "../..", location_href
|
os.path.join(repomd_xml_path, "../..", location_href)
|
||||||
)
|
)
|
||||||
|
|
||||||
# Delete the data element
|
# Delete the data element
|
||||||
|
Loading…
Reference in New Issue
Block a user