commit/galaxy-central: inithello: Fix issue where the check script was unsetting the galaxy environment information.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/6ea891cafbbb/ changeset: 6ea891cafbbb user: inithello date: 2013-03-12 14:36:56 summary: Fix issue where the check script was unsetting the galaxy environment information. affected #: 1 file diff -r b89a535240e5cb5fc123264b6294f86a577d02d9 -r 6ea891cafbbb7f9435887ca86b0823e1b8709882 lib/tool_shed/scripts/check_repositories_for_functional_tests.py --- a/lib/tool_shed/scripts/check_repositories_for_functional_tests.py +++ b/lib/tool_shed/scripts/check_repositories_for_functional_tests.py @@ -172,10 +172,6 @@ # a user can't install. # Initialize the repository_status dict with the test environment, but leave the test_errors empty. repository_status = {} - repository_status[ 'test_environment' ] = get_test_environment() - repository_status[ 'test_environment' ][ 'tool_shed_database_version' ] = get_database_version( app ) - repository_status[ 'test_environment' ][ 'tool_shed_mercurial_version' ] = __version__.version - repository_status[ 'test_environment' ][ 'tool_shed_revision' ] = get_repository_current_revision( os.getcwd() ) repository_status[ 'invalid_tests' ] = [] metadata_records_to_check = app.sa_session.query( app.model.RepositoryMetadata ) \ .filter( and_( app.model.RepositoryMetadata.table.c.downloadable == True, @@ -186,6 +182,13 @@ for metadata_record in metadata_records_to_check: if metadata_record.tool_test_errors: repository_status = metadata_record.tool_test_errors + if 'test_environment' in repository_status: + repository_status[ 'test_environment' ] = get_test_environment( repository_status[ 'test_environment' ] ) + else: + repository_status[ 'test_environment' ] = get_test_environment() + repository_status[ 'test_environment' ][ 'tool_shed_database_version' ] = get_database_version( app ) + repository_status[ 'test_environment' ][ 'tool_shed_mercurial_version' ] = __version__.version + repository_status[ 'test_environment' ][ 'tool_shed_revision' ] = get_repository_current_revision( os.getcwd() ) name = metadata_record.repository.name owner = metadata_record.repository.user.username changeset_revision = str( metadata_record.changeset_revision ) 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