Compare commits
1 Commits
d52669b8b0
...
d7127244be
Author | SHA1 | Date |
---|---|---|
Sebastian Lohff | d7127244be |
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue