Commit 8db6cc80 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(proxy) add txz as valid download format

(cherry picked from commit c5299dba)
parent f3d35b8d
...@@ -66,7 +66,8 @@ class ACLDownload(object): ...@@ -66,7 +66,8 @@ class ACLDownload(object):
""" """
if self._source_data is not None: if self._source_data is not None:
# handle compressed data # handle compressed data
if len(self._url) > 8 and self._url[-7:] == '.tar.gz': if (len(self._url) > 8 and self._url[-7:] == '.tar.gz') \
or (len(self._url) > 4 and self._url[-4:] == '.txz'):
# source is in tar.gz format, extract all into a single string # source is in tar.gz format, extract all into a single string
try: try:
tf = tarfile.open(fileobj=StringIO.StringIO(self._source_data)) tf = tarfile.open(fileobj=StringIO.StringIO(self._source_data))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment