commit/galaxy-central: davebgx: If a tool shed repository was updated after a tool migration without a new installable changeset revision being generated, for example by adding or removing a readme file, the migration install framework would be unable to find repository dependencies. This changeset resolves that.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/e6876f691854/ Changeset: e6876f691854 Branch: stable User: davebgx Date: 2014-04-18 19:58:51 Summary: If a tool shed repository was updated after a tool migration without a new installable changeset revision being generated, for example by adding or removing a readme file, the migration install framework would be unable to find repository dependencies. This changeset resolves that. Affected #: 1 file diff -r 5fd196b5d1760d1a8180184f8e5450e0957b37c2 -r e6876f6918548a0805fa0cc5306ba1ced6fb184a lib/galaxy/webapps/tool_shed/controllers/repository.py --- a/lib/galaxy/webapps/tool_shed/controllers/repository.py +++ b/lib/galaxy/webapps/tool_shed/controllers/repository.py @@ -1700,9 +1700,11 @@ changeset_revision = kwd.get( 'changeset_revision', None ) repository = suc.get_repository_by_name_and_owner( trans.app, name, owner ) repository_id = trans.security.encode_id( repository.id ) - # We aren't concerned with repository's of type tool_dependency_definition here if a repository_metadata record is not returned - # because repositories of this type will never have repository dependencies. - repository_metadata = suc.get_repository_metadata_by_changeset_revision( trans, repository_id, changeset_revision ) + # We aren't concerned with repositories of type tool_dependency_definition here if a repository_metadata record is not returned + # because repositories of this type will never have repository dependencies. However, if a readme file is uploaded, or some other + # change is made that does not create a new downloadable changeset revision but updates the existing one, we still want to be able + # to get repository dependencies. + repository_metadata = suc.get_current_repository_metadata_for_changeset_revision( trans, repository, changeset_revision ) if repository_metadata: metadata = repository_metadata.metadata if metadata: 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