2 new commits in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/9fe9aa6ac504/ Changeset: 9fe9aa6ac504 Branch: stable User: Dave Bouvier Date: 2013-09-04 20:30:49 Summary: Fix for duplicate records created when a repository is installed from the tool shed, and the same repository had previously been installed and uninstalled. Affected #: 1 file diff -r ee6d553f7847ec47cca0cf205c767d1407eccbab -r 9fe9aa6ac504bc7703ba5d465e68170d79e89905 lib/tool_shed/util/repository_dependency_util.py --- a/lib/tool_shed/util/repository_dependency_util.py +++ b/lib/tool_shed/util/repository_dependency_util.py @@ -189,6 +189,10 @@ log.debug( debug_msg ) suc.reset_previously_installed_repository( trans, installed_tool_shed_repository ) can_update = True + reinstalling = True + # Set changeset_revision here so suc.create_or_update_tool_shed_repository will find the previously installed + # and uninstalled repository instead of creating a new record. + changeset_revision = installed_tool_shed_repository.installed_changeset_revision else: # A tool shed repository is being installed into a Galaxy instance for the first time, or we're attempting to install it or reinstall it resulted # in an error. In the latter case, the repository record in the database has no metadata and it's status has been set to 'New'. In either case, https://bitbucket.org/galaxy/galaxy-central/commits/380f30568086/ Changeset: 380f30568086 User: Dave Bouvier Date: 2013-09-04 20:34:57 Summary: Merge in bugfix from stable. Affected #: 1 file diff -r b9da077a79c3ce0323bd8f8e5aed3e311d1fd8ae -r 380f30568086d773d6153a17f3fd1d85a7b42626 lib/tool_shed/util/repository_dependency_util.py --- a/lib/tool_shed/util/repository_dependency_util.py +++ b/lib/tool_shed/util/repository_dependency_util.py @@ -189,6 +189,10 @@ log.debug( debug_msg ) suc.reset_previously_installed_repository( trans, installed_tool_shed_repository ) can_update = True + reinstalling = True + # Set changeset_revision here so suc.create_or_update_tool_shed_repository will find the previously installed + # and uninstalled repository instead of creating a new record. + changeset_revision = installed_tool_shed_repository.installed_changeset_revision else: # A tool shed repository is being installed into a Galaxy instance for the first time, or we're attempting to install it or reinstall it resulted # in an error. In the latter case, the repository record in the database has no metadata and it's status has been set to 'New'. In either case, 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.