remove suffix from file cause its uncompressed no

This commit is contained in:
S.Çağlar Onur
2007-04-06 18:46:09 +00:00
parent a15e60a0ee
commit 2b44132382
+2
View File
@@ -465,6 +465,8 @@ def uncompress(patchFile, compressType="gz", targetDir=None):
os.path.basename(patchFile))
else:
filePath = os.path.basename(patchFile)
# remove suffix from file cause its uncompressed now
filePath = filePath.split(".%s" % compressType)[0]
if compressType == "gz":
from gzip import GzipFile