From: Hans-Christoph Steiner Date: Fri, 27 Oct 2017 07:14:15 +0000 (+0200) Subject: sort Anti-Features before writing them to the wiki X-Git-Tag: 0.9~44 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7be46d53c7dd2e870a4a46333e028865779d5cd9;p=fdroidserver.git sort Anti-Features before writing them to the wiki This avoids silly updates to the wiki where the sort order of the Anti- Features is the only change: −{{AntiFeature|KnownVuln}} {{AntiFeature|DisabledAlgorithm}} +{{AntiFeature|KnownVuln}} https://f-droid.org/wiki/index.php?title=info.guardianproject.browser&curid=517&diff=189655&oldid=188037 --- diff --git a/fdroidserver/update.py b/fdroidserver/update.py index 574f1c24..ec2b3320 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -132,7 +132,7 @@ def update_wiki(apps, sortedids, apks): if app.Disabled: wikidata += '{{Disabled|' + app.Disabled + '}}\n' if app.AntiFeatures: - for af in app.AntiFeatures: + for af in sorted(app.AntiFeatures): wikidata += '{{AntiFeature|' + af + '}}\n' if app.RequiresRoot: requiresroot = 'Yes'