mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
make cachedir subdirectories pick their place correctly based on parent folder
This commit is contained in:
parent
1e6694112a
commit
4a38908bd7
1 changed files with 5 additions and 2 deletions
|
@ -125,13 +125,11 @@ default_config = {
|
|||
'sdk_path': "$ANDROID_HOME",
|
||||
'ndk_paths': {},
|
||||
'cachedir': str(Path.home() / '.cache/fdroidserver'),
|
||||
'cachedir_scanner': str(Path.home() / '.cache/fdroidserver/scanner'),
|
||||
'java_paths': None,
|
||||
'scan_binary': False,
|
||||
'ant': "ant",
|
||||
'mvn3': "mvn",
|
||||
'gradle': os.path.join(FDROID_PATH, 'gradlew-fdroid'),
|
||||
'gradle_version_dir': str(Path.home() / '.cache/fdroidserver/gradle'),
|
||||
'sync_from_local_copy_dir': False,
|
||||
'allow_disabled_algorithms': False,
|
||||
'per_app_repos': False,
|
||||
|
@ -320,6 +318,11 @@ def fill_config_defaults(thisconfig):
|
|||
ndk_paths[ndkdict['release']] = ndk_paths.pop(k)
|
||||
break
|
||||
|
||||
if 'cachedir_scanner' not in thisconfig:
|
||||
thisconfig['cachedir_scanner'] = str(Path(thisconfig['cachedir']) / 'scanner')
|
||||
if 'gradle_version_dir' not in thisconfig:
|
||||
thisconfig['gradle_version_dir'] = str(Path(thisconfig['cachedir']) / 'gradle')
|
||||
|
||||
|
||||
def get_config(options=None):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue