Compare commits

..

1 Commits

Author SHA1 Message Date
Sebastian Lohff d7127244be Initial tests 2019-02-13 01:00:08 +01:00
2 changed files with 2 additions and 6 deletions

View File

@ -227,7 +227,7 @@ class FileHandler(FileBaseHandler):
class TarFileHandler(FileBaseHandler):
target = None
compression = "none"
compressionMethods = ("none", "gzip", "bzip2", "xz")
compressionMethods = ("none", "gzip", "bzip2")
def do_HEAD(self):
if self.checkAndDoRedirect():
@ -269,8 +269,6 @@ class TarFileHandler(FileBaseHandler):
cmd = ["tar", "-cz"]
elif self.compression == "bzip2":
cmd = ["tar", "-cj"]
elif self.compression == "xz":
cmd = ["tar", "-cJ"]
else:
raise ValueError("Unknown compression mode '%s'." % self.compression)
@ -289,8 +287,6 @@ class TarFileHandler(FileBaseHandler):
return ".tar.gz"
elif TarFileHandler.compression == "bzip2":
return ".tar.bz2"
elif TarFileHandler.compression == "xz":
return ".tar.xz"
raise ValueError("Unknown compression mode '%s'." % TarFileHandler.compression)

View File

@ -94,7 +94,7 @@ available.
.TP
\fB\-c\fR method, \fB\-\-compression\fR method
Set compression method, only in combination with
\fB\-\-tar\fR. Can be one of none, gzip, bzip2, xz.
\fB\-\-tar\fR. Can be one of none, gzip, bzip2.
.TP
\fB\-4\fR, \fB\-\-ipv4\-only\fR
Listen on IPv4 only