commit/galaxy-central: greg: Fix a typo when creating or updating a tool shed repository db record.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/4a1389e037c6/ changeset: 4a1389e037c6 user: greg date: 2012-06-15 16:21:15 summary: Fix a typo when creating or updating a tool shed repository db record. affected #: 1 file diff -r 622fd4f0a437c897fea83e3e60eba5191f8548f5 -r 4a1389e037c60d83abdcc38ccb30314c4ef4a530 lib/galaxy/util/shed_util.py --- a/lib/galaxy/util/shed_util.py +++ b/lib/galaxy/util/shed_util.py @@ -340,7 +340,7 @@ name=name, description=description, owner=owner, - installed_changeset_revision=changeset_revision, + installed_changeset_revision=installed_changeset_revision, changeset_revision=current_changeset_revision, ctx_rev=ctx_rev, metadata=metadata_dict, @@ -1492,6 +1492,22 @@ if uninstall: # Write the current in-memory version of the integrated_tool_panel.xml file to disk. trans.app.toolbox.write_integrated_tool_panel_config_file() +def remove_tool_dependency( trans, tool_dependency ): + dependency_install_dir = tool_dependency.installation_directory( trans.app ) + try: + shutil.rmtree( dependency_install_dir ) + removed = True + error_message = '' + log.debug( "Removed tool dependency installation directory: %s" % str( dependency_install_dir ) ) + except Exception, e: + removed = False + error_message = "Error removing tool dependency installation directory %s: %s" % ( str( dependency_install_dir ), str( e ) ) + log.debug( error_message ) + if removed: + tool_dependency.uninstalled = True + trans.sa_session.add( tool_dependency ) + trans.sa_session.flush() + return removed, error_message def reset_tool_data_tables( app ): # Reset the tool_data_tables to an empty dictionary. app.tool_data_tables.data_tables = {} 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)
-
Bitbucket