mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Bump securetar to 2025.1.1 (#135582)
This commit is contained in:
parent
8109efe810
commit
edc7c0ff2f
@ -10,7 +10,7 @@ from enum import StrEnum
|
||||
import hashlib
|
||||
import io
|
||||
import json
|
||||
from pathlib import Path
|
||||
from pathlib import Path, PurePath
|
||||
import shutil
|
||||
import tarfile
|
||||
import time
|
||||
@ -1231,6 +1231,17 @@ class CoreBackupReaderWriter(BackupReaderWriter):
|
||||
if not database_included:
|
||||
excludes = excludes + EXCLUDE_DATABASE_FROM_BACKUP
|
||||
|
||||
def is_excluded_by_filter(path: PurePath) -> bool:
|
||||
"""Filter to filter excludes."""
|
||||
|
||||
for exclude in excludes:
|
||||
if not path.match(exclude):
|
||||
continue
|
||||
LOGGER.debug("Ignoring %s because of %s", path, exclude)
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
outer_secure_tarfile = SecureTarFile(
|
||||
tar_file_path, "w", gzip=False, bufsize=BUF_SIZE
|
||||
)
|
||||
@ -1249,7 +1260,7 @@ class CoreBackupReaderWriter(BackupReaderWriter):
|
||||
atomic_contents_add(
|
||||
tar_file=core_tar,
|
||||
origin_path=Path(self._hass.config.path()),
|
||||
excludes=excludes,
|
||||
file_filter=is_excluded_by_filter,
|
||||
arcname="data",
|
||||
)
|
||||
return (tar_file_path, tar_file_path.stat().st_size)
|
||||
|
@ -8,5 +8,5 @@
|
||||
"integration_type": "system",
|
||||
"iot_class": "calculated",
|
||||
"quality_scale": "internal",
|
||||
"requirements": ["cronsim==2.6", "securetar==2024.11.0"]
|
||||
"requirements": ["cronsim==2.6", "securetar==2025.1.1"]
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ PyTurboJPEG==1.7.5
|
||||
pyudev==0.24.1
|
||||
PyYAML==6.0.2
|
||||
requests==2.32.3
|
||||
securetar==2024.11.0
|
||||
securetar==2025.1.1
|
||||
SQLAlchemy==2.0.36
|
||||
standard-aifc==3.13.0;python_version>='3.13'
|
||||
standard-telnetlib==3.13.0;python_version>='3.13'
|
||||
|
@ -67,7 +67,7 @@ dependencies = [
|
||||
"python-slugify==8.0.4",
|
||||
"PyYAML==6.0.2",
|
||||
"requests==2.32.3",
|
||||
"securetar==2024.11.0",
|
||||
"securetar==2025.1.1",
|
||||
"SQLAlchemy==2.0.36",
|
||||
"standard-aifc==3.13.0;python_version>='3.13'",
|
||||
"standard-telnetlib==3.13.0;python_version>='3.13'",
|
||||
|
2
requirements.txt
generated
2
requirements.txt
generated
@ -38,7 +38,7 @@ psutil-home-assistant==0.0.1
|
||||
python-slugify==8.0.4
|
||||
PyYAML==6.0.2
|
||||
requests==2.32.3
|
||||
securetar==2024.11.0
|
||||
securetar==2025.1.1
|
||||
SQLAlchemy==2.0.36
|
||||
standard-aifc==3.13.0;python_version>='3.13'
|
||||
standard-telnetlib==3.13.0;python_version>='3.13'
|
||||
|
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@ -2665,7 +2665,7 @@ screenlogicpy==0.10.0
|
||||
scsgate==0.1.0
|
||||
|
||||
# homeassistant.components.backup
|
||||
securetar==2024.11.0
|
||||
securetar==2025.1.1
|
||||
|
||||
# homeassistant.components.sendgrid
|
||||
sendgrid==6.8.2
|
||||
|
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@ -2147,7 +2147,7 @@ sanix==1.0.6
|
||||
screenlogicpy==0.10.0
|
||||
|
||||
# homeassistant.components.backup
|
||||
securetar==2024.11.0
|
||||
securetar==2025.1.1
|
||||
|
||||
# homeassistant.components.emulated_kasa
|
||||
# homeassistant.components.sense
|
||||
|
Loading…
x
Reference in New Issue
Block a user