1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-01-03 05:35:58 +00:00

Merge pull request #8428 from ThomasWaldmann/tags-fixes

fixes for tags infrastructure PR
This commit is contained in:
TW 2024-09-26 23:02:23 +02:00 committed by GitHub
commit 2a01d29cda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -47,6 +47,10 @@ class ArchiveItem(PropDict):
@comment.setter
def comment(self, val: str) -> None: ...
@property
def tags(self) -> List[str]: ...
@tags.setter
def tags(self, val: List[str]) -> None: ...
@property
def chunker_params(self) -> Tuple: ...
@chunker_params.setter
def chunker_params(self, val: Tuple) -> None: ...

View file

@ -161,4 +161,5 @@ def upgrade_archive_metadata(self, *, metadata):
new_metadata["command_line"] = join_cmd(getattr(metadata, "cmdline"))
if hasattr(metadata, "recreate_cmdline"):
new_metadata["recreate_command_line"] = join_cmd(getattr(metadata, "recreate_cmdline"))
new_metadata["tags"] = []
return new_metadata