소스 검색

prune: fix exception when NAME is given, fixes #8486

Thomas Waldmann 8 달 전
부모
커밋
75b8030ed5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/borg/archiver/prune_cmd.py

+ 1 - 1
src/borg/archiver/prune_cmd.py

@@ -149,7 +149,7 @@ class PruneMixIn:
             format = os.environ.get("BORG_PRUNE_FORMAT", "{archive:<36} {time} [{id}]")
         formatter = ArchiveFormatter(format, repository, manifest, manifest.key, iec=args.iec)
 
-        match = args.name if args.name else args.match_archives
+        match = [args.name] if args.name else args.match_archives
         archives = manifest.archives.list(match=match, sort_by=["ts"], reverse=True)
         archives = [ai for ai in archives if "@PROT" not in ai.tags]