Skip to content

Commit

Permalink
fixes for tags infrastructure PR
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasWaldmann committed Sep 26, 2024
1 parent 70977a3 commit d5b4a69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/borg/item.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down
1 change: 1 addition & 0 deletions src/borg/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d5b4a69

Please sign in to comment.