1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-19 21:30:10 +01:00

Merge branch 'sortxml' into 'master'

Sort the xml file pathes for consistent result

See merge request fdroid/fdroidserver!1174
This commit is contained in:
Jochen Sprickerhof 2022-08-24 13:51:47 +00:00
commit a1286209ad

View File

@ -1555,7 +1555,7 @@ def retrieve_string(app_dir, string, xmlfiles=None):
s = XMLElementTree.tostring(element, encoding='utf-8', method='text') s = XMLElementTree.tostring(element, encoding='utf-8', method='text')
return s.decode('utf-8').strip() return s.decode('utf-8').strip()
for path in xmlfiles: for path in sorted(xmlfiles):
if not os.path.isfile(path): if not os.path.isfile(path):
continue continue
try: try: