Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- store cache about ~/.buildozer in ~/.buildozer and cache about .bui… #801

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions buildozer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ def check_build_layout(self):
self.mkdir(self.bin_dir)

self.mkdir(self.applibs_dir)
self.global_state = JsonStore(join(self.global_buildozer_dir, 'state.db'))
self.state = JsonStore(join(self.buildozer_dir, 'state.db'))

target = self.targetname
Expand Down
6 changes: 3 additions & 3 deletions buildozer/targets/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def _install_android_packages(self):
self.android_api, self.android_minapi, self.android_ndk_version,
self.android_sdk_dir, self.android_ndk_dir
]
if self.buildozer.state.get(cache_key, None) == cache_value:
if self.buildozer.global_state.get(cache_key, None) == cache_value:
return True

# 3 pass installation.
Expand Down Expand Up @@ -485,8 +485,8 @@ def _install_android_packages(self):

self.buildozer.info('Android packages installation done.')

self.buildozer.state[cache_key] = cache_value
self.buildozer.state.sync()
self.buildozer.global_state[cache_key] = cache_value
self.buildozer.global_state.sync()

def _check_aidl(self, v_build_tools):
self.buildozer.debug('Check that aidl can be executed')
Expand Down