Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
insert_updateinfo() does not encode the unicode xml_dump, causing an encoding issue #955
The version of createrepo_c in EL 7 returns a string (byte array) from xml_dump(), but the version in Fedora 24 returns a unicode object. By default, Python 2.7 uses ascii encoding when asked to write() a unicode object to a file. This is failing in production, since our updateinfo has characters that don't have ascii code points.
The fix is easy! The call to