commit/galaxy-central: greg: Contribution from Bjorn Gruning to extend the valid list of readme files in tool shed repositories to include .rst files.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/01850fa1b8aa/ Changeset: 01850fa1b8aa User: greg Date: 2013-07-12 04:24:35 Summary: Contribution from Bjorn Gruning to extend the valid list of readme files in tool shed repositories to include .rst files. Affected #: 1 file diff -r 43bfb43ed4b508cfa9a611edc71caf531a0c1a2a -r 01850fa1b8aa2706c5b6cf67d8d7099b2093aa36 lib/tool_shed/util/metadata_util.py --- a/lib/tool_shed/util/metadata_util.py +++ b/lib/tool_shed/util/metadata_util.py @@ -982,10 +982,11 @@ return old_id def get_readme_file_names( repository_name ): + """Creates a list of valid filenames.""" readme_files = [ 'readme', 'read_me', 'install' ] - valid_filenames = [ r for r in readme_files ] - for r in readme_files: - valid_filenames.append( '%s.txt' % r ) + valid_filenames = map( lambda f: '%s.txt' % f, readme_files ) + valid_filenames.extend( map( lambda f: '%s.rst' % f, readme_files ) ) + valid_filenames.extend( readme_files ) valid_filenames.append( '%s.txt' % repository_name ) return valid_filenames 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