new_fd = gzip.GzipFile(fileobj=fd)
fd = new_fd
archive = tarfile.open(fileobj=fd)
Traceback (most recent call last):
File "/home/didrocks/work/ubuntu-make/umake/decompressor.py", line 96, in _decompress
archive = tarfile.open(fileobj=fd)
File "/usr/lib/python3.4/tarfile.py", line 1553, in open
return func(name, "r", fileobj, **kwargs)
File "/usr/lib/python3.4/tarfile.py", line 1601, in taropen
return cls(name, mode, fileobj, **kwargs)
File "/usr/lib/python3.4/tarfile.py", line 1475, in __init__
self.firstmember = self.next()
File "/usr/lib/python3.4/tarfile.py", line 2260, in next
tarinfo = self.tarinfo.fromtarfile(self)
File "/usr/lib/python3.4/tarfile.py", line 1087, in fromtarfile
buf = tarfile.fileobj.read(BLOCKSIZE)
File "/usr/lib/python3.4/gzip.py", line 365, in read
if not self._read(readsize):
File "/usr/lib/python3.4/gzip.py", line 433, in _read
if not self._read_gzip_header():
File "/usr/lib/python3.4/gzip.py", line 297, in _read_gzip_header
raise OSError('Not a gzipped file')
OSError: Not a gzipped file