mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 07:22:29 +03:00
Indicate if an app requires root privileges
This commit is contained in:
parent
db579a4eba
commit
92a2022d2c
5 changed files with 14 additions and 0 deletions
|
@ -57,6 +57,7 @@ def parse_metadata(metafile, **kw):
|
|||
thisinfo['repo'] = ''
|
||||
thisinfo['builds'] = []
|
||||
thisinfo['usebuilt'] = False
|
||||
thisinfo['requiresroot'] = False
|
||||
mode = 0
|
||||
buildline = []
|
||||
for line in metafile:
|
||||
|
@ -118,6 +119,9 @@ def parse_metadata(metafile, **kw):
|
|||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue