Compare commits

..

No commits in common. "30738981f423f44715d219b5eff63369772d55d7" and "a0b8ae49329cd992fdd1adad159c7d252ea579d3" have entirely different histories.

2 changed files with 2 additions and 6 deletions

View File

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

View File

@ -94,7 +94,7 @@ available.
.TP .TP
\fB\-c\fR method, \fB\-\-compression\fR method \fB\-c\fR method, \fB\-\-compression\fR method
Set compression method, only in combination with 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 .TP
\fB\-4\fR, \fB\-\-ipv4\-only\fR \fB\-4\fR, \fB\-\-ipv4\-only\fR
Listen on IPv4 only Listen on IPv4 only