From d5b4a696bbded85038b98b3b0303800185d3bd46 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 26 Sep 2024 22:38:30 +0200 Subject: [PATCH] fixes for tags infrastructure PR --- src/borg/item.pyi | 4 ++++ src/borg/upgrade.py | 1 + 2 files changed, 5 insertions(+) diff --git a/src/borg/item.pyi b/src/borg/item.pyi index 31fda5540..97de37904 100644 --- a/src/borg/item.pyi +++ b/src/borg/item.pyi @@ -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: ... diff --git a/src/borg/upgrade.py b/src/borg/upgrade.py index 35d71bec2..6277f0172 100644 --- a/src/borg/upgrade.py +++ b/src/borg/upgrade.py @@ -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