فهرست منبع

ArchiveFormatter: fix for non-unique archive names

For Archive(), always use the archive id, not the archive name!
Thomas Waldmann 10 ماه پیش
والد
کامیت
03b139ee53
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/borg/helpers/parseformat.py

+ 1 - 1
src/borg/helpers/parseformat.py

@@ -828,7 +828,7 @@ class ArchiveFormatter(BaseFormatter):
         if self._archive is None or self._archive.id != self.id:
             from ..archive import Archive
 
-            self._archive = Archive(self.manifest, self.name, iec=self.iec)
+            self._archive = Archive(self.manifest, self.id, iec=self.iec)
         return self._archive
 
     def get_meta(self, key, default=None):