Quote --storage-dir value

Command will fail if the directory contains whitespace
This commit is contained in:
Terje Skjaeveland 2018-02-27 15:01:28 +01:00 committed by GitHub
parent 94691c0138
commit 59ae01db21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ class TargetAndroidNew(TargetAndroid):
'app', 'p4a.bootstrap', 'sdl2')
self.p4a_apk_cmd += self._p4a_bootstrap
color = 'always' if USE_COLOR else 'never'
self.extra_p4a_args = ' --color={} --storage-dir={}'.format(
self.extra_p4a_args = ' --color={} --storage-dir="{}"'.format(
color, self._build_dir)
hook = self.buildozer.config.getdefault("app", "p4a.hook", None)
if hook is not None: