Fixed bug where --tar produced filenames with duplicate extension

このコミットが含まれているのは:
Sebastian Lohff 2012-06-25 19:30:18 +02:00
コミット f48838f63c
1個のファイルの変更0行の追加3行の削除

ファイルの表示

@ -270,13 +270,10 @@ class TarFileHandler(FileBaseHandler):
def getCompressionCmd(self):
if self.compression == "none":
self.fileName += ".tar"
cmd = ["tar", "-c"]
elif self.compression == "gzip":
self.fileName += ".tar.gz"
cmd = ["tar", "-cz"]
elif self.compression == "bzip2":
self.fileName += ".tar.bz2"
cmd = ["tar", "-cj"]
else:
raise ValueError("Unknown compression mode '%s'." % self.compression)