Skip to content

Commit

Permalink
Workaround for extra metadata revision creation
Browse files Browse the repository at this point in the history
Without this change, uploading non-metadata changes to a toolshed repository will display an error message and create a new metadata revision regardless of whether the code should determine that a new metadata revision is warranted.
  • Loading branch information
davebx committed Feb 1, 2018
1 parent baae416 commit 30ac9e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/galaxy/tools/__init__.py
Expand Up @@ -440,7 +440,10 @@ def __init__(self, config_file, tool_source, app, guid=None, repository_id=None,
raise e
self.history_manager = histories.HistoryManager(app)
self._view = views.DependencyResolversView(app)
self.job_search = JobSearch(app=self.app)
# The job search is only relevant in a galaxy context, and breaks
# loading tools into the toolshed for validation.
if self.app.name == 'galaxy':
self.job_search = JobSearch(app=self.app)

@property
def version_object(self):
Expand Down

0 comments on commit 30ac9e9

Please sign in to comment.