Revert "Fix add-on store reset"

This reverts commit da8c6cf1117e1b3d9522a293912376f5d455b389.
This commit is contained in:
Stefan Agner 2025-02-25 09:10:27 +01:00
parent da8c6cf111
commit 5733db94aa
No known key found for this signature in database
GPG Key ID: AE01353D1E44747D
2 changed files with 3 additions and 5 deletions

View File

@ -1,6 +1,5 @@
"""Helpers to check and fix issues with free space."""
from functools import partial
import logging
from ...coresys import CoreSys
@ -41,9 +40,7 @@ class FixupStoreExecuteReset(FixupBase):
_LOGGER.warning("Can't find store %s for fixup", reference)
return
await self.sys_run_in_executor(
partial(remove_folder, folder=repository.git.path, content_only=True)
)
await self.sys_run_in_executor(remove_folder, repository.git.path)
# Load data again
try:

View File

@ -106,7 +106,8 @@ def remove_folder(
except OSError as err:
_LOGGER.exception("Can't remove folder %s: %s", folder, err)
except subprocess.CalledProcessError as procerr:
_LOGGER.critical("Can't remove folder %s: %s", folder, procerr.stderr.strip())
_LOGGER.error("Can't remove folder %s: %s", folder, procerr.stderr.strip())
raise procerr
def remove_folder_with_excludes(