Fix extracting named members from tar file
This commit is contained in:
parent
583cd2b0bb
commit
b76826a873
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user