Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpm: fix
xml.etree.ElementTree.ParseError
issue
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. Example: <rpm:license>OpenSSL & Chromium CLA</rpm:license> <-- before <rpm:license>OpenSSL & Chromium CLA</rpm:license> <-- after
- Loading branch information