mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-08 18:31:07 +03:00
update: fix encoding issues with the xml index
This commit is contained in:
parent
24266d48e1
commit
a1703f1204
1 changed files with 3 additions and 3 deletions
|
@ -826,7 +826,7 @@ def make_index(apps, sortedids, apks, repodir, archive, categories):
|
||||||
logging.warning("\tfdroid update --create-key")
|
logging.warning("\tfdroid update --create-key")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
repoel.setAttribute("pubkey", extract_pubkey())
|
repoel.setAttribute("pubkey", extract_pubkey().decode('utf-8'))
|
||||||
root.appendChild(repoel)
|
root.appendChild(repoel)
|
||||||
|
|
||||||
for appid in sortedids:
|
for appid in sortedids:
|
||||||
|
@ -966,9 +966,9 @@ def make_index(apps, sortedids, apks, repodir, archive, categories):
|
||||||
os.symlink(sigfile_path, siglinkname)
|
os.symlink(sigfile_path, siglinkname)
|
||||||
|
|
||||||
if options.pretty:
|
if options.pretty:
|
||||||
output = doc.toprettyxml()
|
output = doc.toprettyxml(encoding='utf-8')
|
||||||
else:
|
else:
|
||||||
output = doc.toxml()
|
output = doc.toxml(encoding='utf-8')
|
||||||
|
|
||||||
with open(os.path.join(repodir, 'index.xml'), 'wb') as f:
|
with open(os.path.join(repodir, 'index.xml'), 'wb') as f:
|
||||||
f.write(output)
|
f.write(output)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue