Code cleanup in the tool shed's install_util.

This commit is contained in:
Greg Von Kuster
2013-10-15 12:09:33 -04:00
parent 8b9940d3a9
commit 89bbc937ec
@@ -14,8 +14,8 @@ from tool_shed.util import tool_dependency_util
from tool_shed.util import xml_util
from tool_shed.galaxy_install.tool_dependencies import td_common_util
from galaxy.model.orm import and_
from galaxy.web import url_for
from galaxy.util import asbool
from galaxy.util import listify
log = logging.getLogger( __name__ )
@@ -673,20 +673,6 @@ def install_via_fabric( app, tool_dependency, install_dir, package_name=None, pr
else:
install_and_build_package_via_fabric( app, tool_dependency, actions_dict )
def listify( item ):
"""
Make a single item a single item list, or return a list if passed a
list. Passing a None returns an empty list.
"""
if not item:
return []
elif isinstance( item, list ):
return item
elif isinstance( item, basestring ) and item.count( ',' ):
return item.split( ',' )
else:
return [ item ]
def parse_env_shell_entry( action, name, value, line ):
new_value = value
var_name = '$%s' % name