Skip to content

Commit

Permalink
UTF-8 encode the updateinfo before writing
Browse files Browse the repository at this point in the history
Fixes: fedora-infra#955
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
  • Loading branch information
puiterwijk authored and bowlofeggs committed Sep 22, 2016
1 parent 07ff664 commit 0b25ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bodhi/server/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def add_update(self, update):

def insert_updateinfo(self):
fd, name = tempfile.mkstemp()
os.write(fd, self.uinfo.xml_dump())
os.write(fd, self.uinfo.xml_dump().encode('utf-8'))
os.close(fd)
self.modifyrepo(name)
os.unlink(name)
Expand Down

0 comments on commit 0b25ae7

Please sign in to comment.