1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/23b8a52409a4/ Changeset: 23b8a52409a4 User: davebgx Date: 2014-06-11 23:00:56 Summary: Merge stable. Affected #: 1 file diff -r 651c1ed8e4d35cc140d20038c17e33eeb4381804 -r 23b8a52409a41e13a8869b51a7360e4040537579 lib/tool_shed/util/import_util.py --- a/lib/tool_shed/util/import_util.py +++ b/lib/tool_shed/util/import_util.py @@ -24,26 +24,27 @@ name, owner = name_owner if not ok: repository = suc.get_repository_by_name_and_owner( trans.app, name, owner ) - # Do not allow the repository to be automatically installed if population resulted in errors. - tip_changeset_revision = repository.tip( trans.app ) - repository_metadata = suc.get_repository_metadata_by_changeset_revision( trans.app, - trans.security.encode_id( repository.id ), - tip_changeset_revision ) - if repository_metadata: - if repository_metadata.downloadable: - repository_metadata.downloadable = False - trans.sa_session.add( repository_metadata ) - if not flush: - flush = True - # Do not allow dependent repository revisions to be automatically installed if population - # resulted in errors. - dependent_downloadable_revisions = suc.get_dependent_downloadable_revisions( trans, repository_metadata ) - for dependent_downloadable_revision in dependent_downloadable_revisions: - if dependent_downloadable_revision.downloadable: - dependent_downloadable_revision.downloadable = False - trans.sa_session.add( dependent_downloadable_revision ) + if repository is not None: + # Do not allow the repository to be automatically installed if population resulted in errors. + tip_changeset_revision = repository.tip( trans.app ) + repository_metadata = suc.get_repository_metadata_by_changeset_revision( trans.app, + trans.security.encode_id( repository.id ), + tip_changeset_revision ) + if repository_metadata: + if repository_metadata.downloadable: + repository_metadata.downloadable = False + trans.sa_session.add( repository_metadata ) if not flush: flush = True + # Do not allow dependent repository revisions to be automatically installed if population + # resulted in errors. + dependent_downloadable_revisions = suc.get_dependent_downloadable_revisions( trans, repository_metadata ) + for dependent_downloadable_revision in dependent_downloadable_revisions: + if dependent_downloadable_revision.downloadable: + dependent_downloadable_revision.downloadable = False + trans.sa_session.add( dependent_downloadable_revision ) + if not flush: + flush = True if flush: trans.sa_session.flush() 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.