diff --git a/metadata.py b/metadata.py index 08a7c9b5..a62f8360 100644 --- a/metadata.py +++ b/metadata.py @@ -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': diff --git a/metadata/com.drodin.tuxrider.txt b/metadata/com.drodin.tuxrider.txt index 4c6aeeb5..314bf98d 100644 --- a/metadata/com.drodin.tuxrider.txt +++ b/metadata/com.drodin.tuxrider.txt @@ -1,4 +1,5 @@ Disabled:Ads +AntiFeatures:Ads License:GPLv2+ Web Site:http://tuxrider.drodin.com/ Source Code:https://github.com/drodin/TuxRider diff --git a/metadata/org.mailboxer.saymyname.txt b/metadata/org.mailboxer.saymyname.txt index 3f91caec..d6ff9dd7 100644 --- a/metadata/org.mailboxer.saymyname.txt +++ b/metadata/org.mailboxer.saymyname.txt @@ -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 diff --git a/update.py b/update.py index 2840f7a9..15dc548d 100644 --- a/update.py +++ b/update.py @@ -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