From 81dcf85d2f10e1a022af599c71fc7bad6ae2eb48 Mon Sep 17 00:00:00 2001 From: Greg Von Kuster Date: Tue, 27 Jul 2010 16:37:17 -0400 Subject: [PATCH] Bug fix for verifying a tool suite uploaded to the tool shed. --- lib/galaxy/webapps/community/datatypes/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/webapps/community/datatypes/__init__.py b/lib/galaxy/webapps/community/datatypes/__init__.py index 8e760a6993d..ba077079c42 100644 --- a/lib/galaxy/webapps/community/datatypes/__init__.py +++ b/lib/galaxy/webapps/community/datatypes/__init__.py @@ -148,7 +148,7 @@ class ToolSuite( Tool ): tar = tarfile.open( f.name ) except tarfile.ReadError: raise DatatypeVerificationError( 'The archive is not a readable tar file.' ) - suite_config = filter( lambda x: x.lower() == 'suite_config.xml', tar.getnames() ) + suite_config = filter( lambda x: x.lower().find( 'suite_config.xml' ) >=0, tar.getnames() ) if not suite_config: raise DatatypeVerificationError( 'The archive does not contain the required suite_config.xml config file. If you are uploading a single tool archive, set the upload type to "Tool".' ) suite_config = suite_config[ 0 ]