commit/galaxy-central: Richard Burhans: Fixed initial installation of virtualenv
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/354fb3e262bb/ Changeset: 354fb3e262bb User: Richard Burhans Date: 2013-09-07 00:03:51 Summary: Fixed initial installation of virtualenv Affected #: 1 file diff -r 8f3110cc7851e67256a6d24d7e41ad65e5a507dd -r 354fb3e262bbf08cf5b77f70da1bb45ee947841c lib/tool_shed/galaxy_install/tool_dependencies/fabric_util.py --- a/lib/tool_shed/galaxy_install/tool_dependencies/fabric_util.py +++ b/lib/tool_shed/galaxy_install/tool_dependencies/fabric_util.py @@ -155,12 +155,10 @@ if not os.path.exists( venv_dir ): with make_tmp_dir() as work_dir: downloaded_filename = VIRTUALENV_URL.rsplit('/', 1)[-1] - downloaded_file_path = td_common_util.url_download( work_dir, downloaded_filename, VIRTUALENV_URL ) - if td_common_util.istar( downloaded_file_path ): - td_common_util.extract_tar( downloaded_file_path, work_dir ) - dir = td_common_util.tar_extraction_directory( work_dir, downloaded_filename ) - else: - log.error( "Failed to download virtualenv: Downloaded file '%s' is not a tar file", downloaded_filename ) + try: + dir = td_common_util.url_download( work_dir, downloaded_filename, VIRTUALENV_URL ) + except: + log.error( "Failed to download virtualenv: td_common_util.url_download( '%s', '%s', '%s' ) threw an exception", work_dir, downloaded_filename, VIRTUALENV_URL ) return False full_path_to_dir = os.path.abspath( os.path.join( work_dir, dir ) ) shutil.move( full_path_to_dir, venv_dir ) Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org