Merge pull request #172 from kived/fix-whitelist

ensure whitelist always has a list
This commit is contained in:
Ryan Pessa 2015-01-27 14:54:19 -06:00
commit ce640fc1d7

View file

@ -494,7 +494,7 @@ class TargetAndroid(Target):
return package.lower() return package.lower()
def _generate_whitelist(self, dist_dir): def _generate_whitelist(self, dist_dir):
p4a_whitelist = self.buildozer.config.getlist('app', 'android.p4a_whitelist') p4a_whitelist = self.buildozer.config.getlist('app', 'android.p4a_whitelist') or []
whitelist_fn = join(dist_dir, 'whitelist.txt') whitelist_fn = join(dist_dir, 'whitelist.txt')
with open(whitelist_fn, 'w') as fd: with open(whitelist_fn, 'w') as fd:
for wl in p4a_whitelist: for wl in p4a_whitelist: