mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03: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
4 changed files with 15 additions and 0 deletions
11
metadata.py
11
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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue