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':