Merge pull request #8946 from ThomasWaldmann/tar-use-normalized-path-1.2

import-tar: when printing the path, use the already normalized item.path.
This commit is contained in:
TW 2025-06-28 14:10:20 +02:00 committed by GitHub
commit be0335a4e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1523,7 +1523,7 @@ class TarfileObjectProcessors:
def process_file(self, *, tarinfo, status, type, tar):
with self.create_helper(tarinfo, status, type) as (item, status):
self.print_file_status(status, tarinfo.name)
self.print_file_status(status, item.path)
status = None # we already printed the status
fd = tar.extractfile(tarinfo)
self.process_file_chunks(item, self.cache, self.stats, self.show_progress,