disabled from being published. The value should be a description of why the
application is disabled.
+==Requires Root==
+
+Set this optional field to "Yes" if the application requires root
+privileges to be usable. This lets the client filter it out if the
+user so desires.
thisinfo['repo'] = ''
thisinfo['builds'] = []
thisinfo['usebuilt'] = False
+ thisinfo['requiresroot'] = False
mode = 0
buildline = []
for line in metafile:
elif field == "Use Built":
if value == "Yes":
thisinfo['usebuilt'] = True
+ elif field == "Requires Root":
+ if value == "Yes":
+ thisinfo['requiresroot'] = True
else:
print "Unrecognised field " + field + " in " + metafile.name
sys.exit(1)
addElement('marketvercode', app['marketvercode'], doc, apel)
if not (app['antifeatures'] is None):
addElement('antifeatures', app['antifeatures'], doc, apel)
+ if app['requiresroot']:
+ addElement('requirements', 'root', doc, apel)
# Sort the apk list into version order, just so the web site
# doesn't have to do any work by default...