Closed urbanchef closed 1 year ago
The license XML tag may contain an ampersand character that should be escaped, otherwise, it leads to the following error:
xml.etree.ElementTree.ParseError: not well-formed (invalid token)
As a result, it renders repository unusable. This patch fixes the issue by escaping the fmt['license'] value in the dump_primary function.
fmt['license']
dump_primary
Example:
<rpm:license>OpenSSL & Chromium CLA</rpm:license> <-- before <rpm:license>OpenSSL & Chromium CLA</rpm:license> <-- after
Thanks for the fix! Please form the commit message properly:
The license XML tag may contain an ampersand character that should be escaped, otherwise, it leads to the following error:
As a result, it renders repository unusable. This patch fixes the issue by escaping the
fmt['license']
value in thedump_primary
function.Example: