mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Only return a warning message about not all files being unpacked if there
were indeed files that weren't unpacked.
This commit is contained in:
parent
8c46ce9add
commit
6432f78215
1 changed files with 2 additions and 1 deletions
|
|
@ -131,7 +131,8 @@ class PimpTarUnpacker(PimpUnpacker):
|
|||
tf.extract(member, self._dir)
|
||||
if skip:
|
||||
names = [member.name for member in skip if member.name[-1] != '/']
|
||||
return "Not all files were unpacked: %s" % " ".join(names)
|
||||
if names:
|
||||
return "Not all files were unpacked: %s" % " ".join(names)
|
||||
|
||||
ARCHIVE_FORMATS = [
|
||||
(".tar.Z", PimpTarUnpacker, None),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue