From 7be46d53c7dd2e870a4a46333e028865779d5cd9 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 27 Oct 2017 09:14:15 +0200 Subject: [PATCH] sort Anti-Features before writing them to the wiki MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- fdroidserver/update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'