@_handleAuth<EOL>def _getTarball(url, into_directory, cache_key, origin_info=None):
try:<EOL><INDENT>access_common.unpackFromCache(cache_key, into_directory)<EOL><DEDENT>except KeyError as e:<EOL><INDENT>tok = settings.getProperty('<STR_LIT>', '<STR_LIT>')<EOL>headers = {}<EOL>if tok is not None:<EOL><INDENT>headers['<STR_LIT>'] = '<STR_LIT>' + str(tok)<EOL><DEDENT>logger.debug('<STR_LIT>', url)<EOL>response = requests.get(url, allow_redirects=True, stream=True, headers=headers)<EOL>response.raise_for_status()<EOL>logger.debug('<STR_LIT>', url)<EOL>logger.debug('<STR_LIT>', response.headers)<EOL>response.raise_for_status()<EOL>access_common.unpackTarballStream(<EOL>stream = response,<EOL>into_directory = into_directory,<EOL>hash = {},<EOL>cache_key = cache_key,<EOL>origin_info = origin_info<EOL>)<EOL><DEDENT>
unpack the specified tarball url into the specified directory