mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 22:54:16 +02:00
[web] fix -> failing to install some applications when the expected temp directory does not exist
This commit is contained in:
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||||
|
|
||||||
|
## [0.9.14] 2021
|
||||||
|
### Fixes
|
||||||
|
- Web
|
||||||
|
- failing to install some applications when the expected temp directory does not exist
|
||||||
|
|
||||||
## [0.9.13] 2021-01-20
|
## [0.9.13] 2021-01-20
|
||||||
### Fixes
|
### Fixes
|
||||||
- missing Python hard dependency: **packaging**
|
- missing Python hard dependency: **packaging**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
__version__ = '0.9.13'
|
__version__ = '0.9.14'
|
||||||
__app_name__ = 'bauh'
|
__app_name__ = 'bauh'
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|||||||
@@ -689,6 +689,9 @@ class WebApplicationManager(SoftwareManager):
|
|||||||
install_options.append('--icon={}'.format(temp_icon_path))
|
install_options.append('--icon={}'.format(temp_icon_path))
|
||||||
|
|
||||||
self.logger.info("Writing a temp suggestion icon at {}".format(temp_icon_path))
|
self.logger.info("Writing a temp suggestion icon at {}".format(temp_icon_path))
|
||||||
|
|
||||||
|
Path(os.path.dirname(temp_icon_path)).mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
with open(temp_icon_path, 'wb+') as f:
|
with open(temp_icon_path, 'wb+') as f:
|
||||||
f.write(icon_bytes)
|
f.write(icon_bytes)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user