mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 01:14:15 +02:00
improvement: --reset now cleans the temporary files as well
This commit is contained in:
@@ -5,6 +5,9 @@ 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.25]
|
## [0.9.25]
|
||||||
|
### Improvements
|
||||||
|
- `--reset`: cleaning the temporary files as well (`/tmp/bauh@$USER`)
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
- AppImage package
|
- AppImage package
|
||||||
- not able to reinitialize (e.g: when settings are changed)
|
- not able to reinitialize (e.g: when settings are changed)
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ from colorama import Fore
|
|||||||
|
|
||||||
from bauh import __app_name__
|
from bauh import __app_name__
|
||||||
from bauh.api.abstract.controller import SoftwareManager
|
from bauh.api.abstract.controller import SoftwareManager
|
||||||
from bauh.api.paths import CONFIG_DIR, CACHE_DIR
|
from bauh.api.paths import CONFIG_DIR, CACHE_DIR, TEMP_DIR
|
||||||
from bauh.commons.system import run_cmd
|
from bauh.commons.system import run_cmd
|
||||||
from bauh.view.util import resource
|
from bauh.view.util import resource
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@ def clean_app_files(managers: List[SoftwareManager], logs: bool = True):
|
|||||||
if logs:
|
if logs:
|
||||||
print('[bauh] Cleaning configuration and cache files')
|
print('[bauh] Cleaning configuration and cache files')
|
||||||
|
|
||||||
for path in (CACHE_DIR, CONFIG_DIR):
|
for path in (CACHE_DIR, CONFIG_DIR, TEMP_DIR):
|
||||||
if logs:
|
if logs:
|
||||||
print('[bauh] Deleting directory {}'.format(path))
|
print('[bauh] Deleting directory {}'.format(path))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user