mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
Ability to tag apps with antifeatures, so they can be included if the user wants
This commit is contained in:
parent
410da2479e
commit
c78ee1a353
11
metadata.py
11
metadata.py
@ -34,6 +34,7 @@ def read_metadata():
|
|||||||
thisinfo['source'] = ''
|
thisinfo['source'] = ''
|
||||||
thisinfo['tracker'] = ''
|
thisinfo['tracker'] = ''
|
||||||
thisinfo['disabled'] = None
|
thisinfo['disabled'] = None
|
||||||
|
thisinfo['antifeatures'] = None
|
||||||
thisinfo['marketversion'] = ''
|
thisinfo['marketversion'] = ''
|
||||||
thisinfo['marketvercode'] = '0'
|
thisinfo['marketvercode'] = '0'
|
||||||
thisinfo['repotype'] = ''
|
thisinfo['repotype'] = ''
|
||||||
@ -67,6 +68,16 @@ def read_metadata():
|
|||||||
thisinfo['tracker'] = value
|
thisinfo['tracker'] = value
|
||||||
elif field == 'Disabled':
|
elif field == 'Disabled':
|
||||||
thisinfo['disabled'] = value
|
thisinfo['disabled'] = value
|
||||||
|
elif field == 'AntiFeatures':
|
||||||
|
parts = value.split(",")
|
||||||
|
for part in parts:
|
||||||
|
if (part != "Ads" and
|
||||||
|
part != "Tracking" and
|
||||||
|
part != "NonFreeNet" and
|
||||||
|
part != "NonFreeAdd"):
|
||||||
|
print "Unrecognised antifeature '" + part + "'"
|
||||||
|
sys.exit(1)
|
||||||
|
thisinfo['antifeatures'] = value
|
||||||
elif field == 'Market Version':
|
elif field == 'Market Version':
|
||||||
thisinfo['marketversion'] = value
|
thisinfo['marketversion'] = value
|
||||||
elif field == 'Market Version Code':
|
elif field == 'Market Version Code':
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
Disabled:Ads
|
Disabled:Ads
|
||||||
|
AntiFeatures:Ads
|
||||||
License:GPLv2+
|
License:GPLv2+
|
||||||
Web Site:http://tuxrider.drodin.com/
|
Web Site:http://tuxrider.drodin.com/
|
||||||
Source Code:https://github.com/drodin/TuxRider
|
Source Code:https://github.com/drodin/TuxRider
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
Disabled:Issues with a) Google Analytics usage tracking, b) ads, c) vague licensing
|
Disabled:Issues with a) Google Analytics usage tracking, b) ads, c) vague licensing
|
||||||
|
AntiFeatures:Ads,Tracking
|
||||||
License:GPLv2
|
License:GPLv2
|
||||||
Web Site:http://tomtasche.at/p/SayMyName
|
Web Site:http://tomtasche.at/p/SayMyName
|
||||||
Source Code:http://github.com/TomTasche/SayMyName
|
Source Code:http://github.com/TomTasche/SayMyName
|
||||||
|
@ -209,6 +209,8 @@ for app in apps:
|
|||||||
addElement('tracker', app['tracker'], doc, apel)
|
addElement('tracker', app['tracker'], doc, apel)
|
||||||
addElement('marketversion', app['marketversion'], doc, apel)
|
addElement('marketversion', app['marketversion'], doc, apel)
|
||||||
addElement('marketvercode', app['marketvercode'], doc, apel)
|
addElement('marketvercode', app['marketvercode'], doc, apel)
|
||||||
|
if not (app['antifeatures'] is None):
|
||||||
|
addElement('antifeatures', app['antifeatures'], doc, apel)
|
||||||
|
|
||||||
gotmarketver = False
|
gotmarketver = False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user