1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-07 01:40:10 +02:00

Ability to tag apps with antifeatures, so they can be included if the user wants

This commit is contained in:
Ciaran Gultnieks 2010-12-15 21:28:50 +00:00
parent 410da2479e
commit c78ee1a353
4 changed files with 15 additions and 0 deletions

View File

@ -34,6 +34,7 @@ def read_metadata():
thisinfo['source'] = ''
thisinfo['tracker'] = ''
thisinfo['disabled'] = None
thisinfo['antifeatures'] = None
thisinfo['marketversion'] = ''
thisinfo['marketvercode'] = '0'
thisinfo['repotype'] = ''
@ -67,6 +68,16 @@ def read_metadata():
thisinfo['tracker'] = value
elif field == 'Disabled':
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':
thisinfo['marketversion'] = value
elif field == 'Market Version Code':

View File

@ -1,4 +1,5 @@
Disabled:Ads
AntiFeatures:Ads
License:GPLv2+
Web Site:http://tuxrider.drodin.com/
Source Code:https://github.com/drodin/TuxRider

View File

@ -1,4 +1,5 @@
Disabled:Issues with a) Google Analytics usage tracking, b) ads, c) vague licensing
AntiFeatures:Ads,Tracking
License:GPLv2
Web Site:http://tomtasche.at/p/SayMyName
Source Code:http://github.com/TomTasche/SayMyName

View File

@ -209,6 +209,8 @@ for app in apps:
addElement('tracker', app['tracker'], doc, apel)
addElement('marketversion', app['marketversion'], doc, apel)
addElement('marketvercode', app['marketvercode'], doc, apel)
if not (app['antifeatures'] is None):
addElement('antifeatures', app['antifeatures'], doc, apel)
gotmarketver = False