2
0
Эх сурвалжийг харах

adapt to new deleted flag semantics in borgstore 0.2.0

also: require borgstore 0.2.x
Thomas Waldmann 1 сар өмнө
parent
commit
35d7bb316c

+ 1 - 1
pyproject.toml

@@ -31,7 +31,7 @@ license = "BSD-3-Clause"
 license-files = ["LICENSE", "AUTHORS"]
 dependencies = [
   "borghash ~= 0.1.0",
-  "borgstore ~= 0.1.0",
+  "borgstore ~= 0.2.0",
   "msgpack >=1.0.3, <=1.1.0",
   "packaging",
   "platformdirs >=3.0.0, <5.0.0; sys_platform == 'darwin'",  # for macOS: breaking changes in 3.0.0,

+ 0 - 6
src/borg/manifest.py

@@ -106,12 +106,6 @@ class Archives:
         if not self.legacy:
             try:
                 infos = list(self.repository.store_list("archives", deleted=deleted))
-                if deleted:
-                    # hack: store_list(deleted=True) yields deleted AND not deleted items,
-                    # guess this should be fixed in a future borgstore release.
-                    # for now, we remove the not-deleted archives here:
-                    not_deleted_infos = set(self.repository.store_list("archives", deleted=False))
-                    infos = [info for info in infos if info not in not_deleted_infos]
             except ObjectNotFound:
                 infos = []
             for info in infos: