mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 07:20:29 +03:00
Also check that platform-tools and tools exist
This commit is contained in:
parent
a8d4c8705f
commit
8306bac7de
1 changed files with 5 additions and 3 deletions
|
|
@ -186,9 +186,11 @@ def test_sdk_exists(c):
|
|||
if not os.path.isdir(c['sdk_path']):
|
||||
logging.critical('Android SDK path "' + c['sdk_path'] + '" is not a directory!')
|
||||
return False
|
||||
if not os.path.isdir(os.path.join(c['sdk_path'], 'build-tools')):
|
||||
logging.critical('Android SDK path "' + c['sdk_path'] + '" does not contain "build-tools/"!')
|
||||
return False
|
||||
for d in ['build-tools', 'platform-tools', 'tools']:
|
||||
if not os.path.isdir(os.path.join(c['sdk_path'], d)):
|
||||
logging.critical('Android SDK path "%s" does not contain "%s/"!' % (
|
||||
c['sdk_path'], d))
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue