chiark / gitweb /
sort Anti-Features before writing them to the wiki
authorHans-Christoph Steiner <hans@eds.org>
Fri, 27 Oct 2017 07:14:15 +0000 (09:14 +0200)
committerHans-Christoph Steiner <hans@eds.org>
Fri, 27 Oct 2017 07:15:22 +0000 (09:15 +0200)
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

index 574f1c243e6464f00d4051119b136394da13dd44..ec2b33205738277acd8bcc421a23292343623769 100644 (file)
@@ -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'