commit/galaxy-central: inithello: Fix for tool listing with run_functional_tests.sh -list, contributed by Peter Cock.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/388e86c30bad/ Changeset: 388e86c30bad User: inithello Date: 2013-04-15 16:09:51 Summary: Fix for tool listing with run_functional_tests.sh -list, contributed by Peter Cock. Affected #: 1 file diff -r 686781f9a8de43b74c19eb8282e47e6bc75342dd -r 388e86c30bad627de5aecb41675d5b35051d9e1d tool_list.py --- a/tool_list.py +++ b/tool_list.py @@ -35,14 +35,15 @@ for line in open("tools/"+tool) : if line.find("<tool ") != -1 and line.find("id") != -1 : keys = line.strip().split('\"') - n = 0 tool_info = dict() tool_info["desc"] = '' - while n < len(keys) : - if keys[n].find("id") != -1 : tool_info["id"] = keys[n+1].replace(' ', '_') - if keys[n].find("name") != -1 : tool_info["name"] = keys[n+1] - if keys[n].find("description") != -1 : tool_info["desc"] = keys[n+1] - n = n + 1 + for n in range(len(keys)-1): + if " id=" in keys[n]: + tool_info["id"] = keys[n+1].replace(' ', '_') + if " name=" in keys[n]: + tool_info["name"] = keys[n+1] + if " description=" in keys[n]: + tool_info["desc"] = keys[n+1] tool_infos.append(tool_info) break 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)
-
commits-noreply@bitbucket.org