Commit 6432f782 authored by Jack Jansen's avatar Jack Jansen

Only return a warning message about not all files being unpacked if there

were indeed files that weren't unpacked.
parent 8c46ce9a
......@@ -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),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment