mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
install_ndk: cleanup tempdir
This commit is contained in:
parent
b285603e43
commit
4a6ccae71a
1 changed files with 41 additions and 40 deletions
|
|
@ -4253,8 +4253,9 @@ def _install_ndk(ndk):
|
||||||
raise FDroidException("NDK %s not found" % ndk)
|
raise FDroidException("NDK %s not found" % ndk)
|
||||||
ndk_base = os.path.join(config['sdk_path'], 'ndk')
|
ndk_base = os.path.join(config['sdk_path'], 'ndk')
|
||||||
logging.info(_('Downloading %s') % url)
|
logging.info(_('Downloading %s') % url)
|
||||||
|
with tempfile.TemporaryDirectory(prefix='android-ndk-') as ndk_dir:
|
||||||
zipball = os.path.join(
|
zipball = os.path.join(
|
||||||
tempfile.mkdtemp(prefix='android-ndk-'),
|
ndk_dir,
|
||||||
os.path.basename(url)
|
os.path.basename(url)
|
||||||
)
|
)
|
||||||
net.download_file(url, zipball)
|
net.download_file(url, zipball)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue