diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-04-22 13:56:19 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-04-22 13:56:19 (GMT) |
commit | 6432f78215e1dc9a3a929074eccc253bd7d3e738 (patch) | |
tree | 7af3f3ae59c9e5b93446983274f80cd496d9bfcb | |
parent | 8c46ce9addf8c30cce1e3a3f3814789160a430c4 (diff) | |
download | cpython-6432f78215e1dc9a3a929074eccc253bd7d3e738.zip cpython-6432f78215e1dc9a3a929074eccc253bd7d3e738.tar.gz cpython-6432f78215e1dc9a3a929074eccc253bd7d3e738.tar.bz2 |
Only return a warning message about not all files being unpacked if there
were indeed files that weren't unpacked.
-rw-r--r-- | Lib/plat-mac/pimp.py | 3 |
1 files changed, 2 insertions, 1 deletions
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), |