Browse Source

Fixed bug where --tar produced filenames with duplicate extension

tests
Sebastian Lohff 10 years ago
parent
commit
f48838f63c
  1. 3
      servefile

3
servefile

@ -270,13 +270,10 @@ class TarFileHandler(FileBaseHandler): @@ -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)

Loading…
Cancel
Save