def extract_tar(self, suffix, path='<STR_LIT:.>'):
mode = suffix.split('<STR_LIT:.>')[-<NUM_LIT:1>]<EOL>tar_fd, tar_fn = tempfile.mkstemp(prefix='<STR_LIT>', suffix='<STR_LIT>' % mode)<EOL>os.close(tar_fd)<EOL>try:<EOL><INDENT>_download_url(self.artifact_url(suffix), tar_fn)<EOL>LOG.info('<STR_LIT>')<EOL>with tarfile.open(tar_fn, mode='<STR_LIT>' % mode) as tar:<EOL><INDENT>members = []<EOL>for member in tar.getmembers():<EOL><INDENT>if member.path.startswith("<STR_LIT>"):<EOL><INDENT>member.path = member.path[<NUM_LIT:8>:]<EOL>members.append(member)<EOL><DEDENT>elif member.path != "<STR_LIT>":<EOL><INDENT>members.append(member)<EOL><DEDENT><DEDENT>tar.extractall(members=members, path=path)<EOL><DEDENT><DEDENT>finally:<EOL><INDENT>os.unlink(tar_fn)<EOL><DEDENT>
Extract builds with .tar.(*) extension
When unpacking a build archive, only extract the firefox directory

@type suffix:
@param suffix:

@type path:
@param path: