mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 17:54:15 +02:00
[web] fix -> failing to install some applications when the expected temp directory does not exist
This commit is contained in:
@@ -689,6 +689,9 @@ class WebApplicationManager(SoftwareManager):
|
||||
install_options.append('--icon={}'.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:
|
||||
f.write(icon_bytes)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user