However, I don't think the script is being called twice and I only see one write() being called.
UPDATE: I can reproduce this by calling update_metainfo.py once.
UPDATE2: The problem is that SubElement already appends itself and then is appended again.
I created a test build for Flatpak and I got the following error when using
8.0.3_x64.deb
:I extracted
org.tribler.Tribler.metainfo.xml
and found the following:This should be written here:
https://github.com/Tribler/tribler/blob/42a8ac190f8f9f8bc4733c34c8092dd1375dd746/build/debian/update_metainfo.py#L5-L12
However, I don't think the script is being called twice and I only see one
write()
being called.UPDATE: I can reproduce this by calling
update_metainfo.py
once. UPDATE2: The problem is thatSubElement
already appends itself and then is appended again.