changeset 84:582ffe5e39a0

paint/package.py
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 17 Sep 2013 17:46:51 -0700
parents 7f442f585580
children 39090ffe58f0
files paint/package.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/paint/package.py	Tue Sep 17 16:04:05 2013 -0700
+++ b/paint/package.py	Tue Sep 17 17:46:51 2013 -0700
@@ -116,7 +116,7 @@
         """returns if the filesystem path is an archive"""
         # TODO: should handle zipfile additionally at least
         # Ideally, this would be pluggable, etc
-        return tarfile.is_tarfile(path)
+        return (not os.path.isdir(path)) and tarfile.is_tarfile(path)
 
     def _cleanup(self):
         if self._tmppath: