mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-20 13:50:12 +01:00
build: only test for all Android SDK paths where it is needed
Now that androguard can be used, the android-sdk is no longer required for most operations.
This commit is contained in:
parent
669401640a
commit
d20e8613fe
@ -1000,6 +1000,12 @@ def main():
|
||||
if options.reset_server and not options.server:
|
||||
parser.error("option %s: Using --reset-server without --server makes no sense" % "reset-server")
|
||||
|
||||
if options.onserver or not options.server:
|
||||
for d in ['build-tools', 'platform-tools', 'tools']:
|
||||
if not os.path.isdir(os.path.join(config['sdk_path'], d)):
|
||||
raise FDroidException(_("Android SDK '{path}' does not have '{dirname}' installed!")
|
||||
.format(path=config['sdk_path'], dirname=d))
|
||||
|
||||
log_dir = 'logs'
|
||||
if not os.path.isdir(log_dir):
|
||||
logging.info("Creating log directory")
|
||||
|
@ -437,11 +437,6 @@ def test_sdk_exists(thisconfig):
|
||||
logging.critical(_("Android SDK path '{path}' is not a directory!")
|
||||
.format(path=thisconfig['sdk_path']))
|
||||
return False
|
||||
for d in ['build-tools', 'platform-tools', 'tools']:
|
||||
if not os.path.isdir(os.path.join(thisconfig['sdk_path'], d)):
|
||||
logging.critical(_("Android SDK '{path}' does not have '{dirname}' installed!")
|
||||
.format(path=thisconfig['sdk_path'], dirname=d))
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user