mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
install_ndk: cleanup tempdir
This commit is contained in:
parent
b285603e43
commit
4a6ccae71a
@ -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…
Reference in New Issue
Block a user