From 6432f78215e1dc9a3a929074eccc253bd7d3e738 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Tue, 22 Apr 2003 13:56:19 +0000 Subject: Only return a warning message about not all files being unpacked if there were indeed files that weren't unpacked. --- Lib/plat-mac/pimp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/plat-mac/pimp.py b/Lib/plat-mac/pimp.py index b3bf781..8a44963 100644 --- a/Lib/plat-mac/pimp.py +++ b/Lib/plat-mac/pimp.py @@ -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), -- cgit v0.12