1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-03-10 06:03:38 +00:00

Merge pull request #8487 from ThomasWaldmann/fix-8486

prune: fix exception when NAME is given, fixes #8486
This commit is contained in:
TW 2024-10-24 00:13:23 +02:00 committed by GitHub
commit defb7237ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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]