Fix extracting named members from tar file

This commit is contained in:
IamTheFij 2024-11-18 11:39:49 -08:00
parent 583cd2b0bb
commit b76826a873

View File

@ -389,7 +389,7 @@ class PackageAdapter:
self._package.extractall(path=path, members=members) self._package.extractall(path=path, members=members)
if isinstance(self._package, TarFile): if isinstance(self._package, TarFile):
self._package.extractall( self._package.extractall(
path=path, members=(TarInfo(name) for name in members) path=path, members=(self._package.getmember(name) for name in members)
) )
return members return members