commit/galaxy-central: greg: Don't add unnecessary (and problematic) prior_installation_required attributes to repository dependency definitions when exporting a repository and its dependencies into a capsule.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/773578e65580/ Changeset: 773578e65580 User: greg Date: 2014-04-03 15:31:43 Summary: Don't add unnecessary (and problematic) prior_installation_required attributes to repository dependency definitions when exporting a repository and its dependencies into a capsule. Affected #: 1 file diff -r 66c39a2810164cff95a3e4099319a4a5a65e94b1 -r 773578e65580e3488fadc144739d82f86d9b30f3 lib/tool_shed/util/commit_util.py --- a/lib/tool_shed/util/commit_util.py +++ b/lib/tool_shed/util/commit_util.py @@ -6,8 +6,8 @@ import shutil import struct import tempfile -from galaxy import util from galaxy.datatypes import checkers +from galaxy.util import asbool from galaxy.util import json from galaxy.util.odict import odict from galaxy.web import url_for @@ -315,7 +315,9 @@ attributes = odict() attributes[ 'name' ] = name attributes[ 'owner' ] = owner - attributes[ 'prior_installation_required' ] = elem.get( 'prior_installation_required', 'False' ) + prior_installation_required = elem.get( 'prior_installation_required' ) + if asbool( prior_installation_required ): + attributes[ 'prior_installation_required' ] = 'True' elem = xml_util.create_element( 'repository', attributes=attributes, sub_elements=sub_elements ) revised = True return revised, elem, error_message 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