Revert "When android.permissions list is left blank, it contains a null string [""]"

This reverts commit aa0a7f8195.
This commit is contained in:
Bob the Hamster 2013-02-06 14:01:26 -08:00
parent aa0a7f8195
commit 91d2b10288

View file

@ -117,9 +117,9 @@ class TargetAndroid(Target):
permissions = self.buildozer.config.getlist(
'app', 'android.permissions', [])
for permission in permissions:
if permission and permission not in available_permissions:
if permission not in available_permissions:
errors.append(
'[app] "android.permissions" contains an unknown'
'[app] "android.permission" contain an unknown'
' permission {0}'.format(permission))
super(TargetAndroid, self).check_configuration_tokens(errors)
@ -372,8 +372,7 @@ class TargetAndroid(Target):
permissions = config.getlist('app',
'android.permissions', [])
for permission in permissions:
if permission:
build_cmd += ' --permission {0}'.format(permission)
build_cmd += ' --permission {0}'.format(permission)
# add presplash
presplash = config.getdefault('app', 'presplash.filename', '')