commit/galaxy-central: greg: Upon import, handle problematic prior_installation_required attribute incorrectly added (and set to "False") to the <repository> tag when a repository was exported.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/59bd7349a128/ Changeset: 59bd7349a128 User: greg Date: 2014-04-03 16:19:46 Summary: Upon import, handle problematic prior_installation_required attribute incorrectly added (and set to "False") to the <repository> tag when a repository was exported. Affected #: 1 file diff -r 6b7678540ee434a7a305cf43d1a663c8f2fde30c -r 59bd7349a128f06de64f6656f553887b09f18ea2 lib/tool_shed/util/commit_util.py --- a/lib/tool_shed/util/commit_util.py +++ b/lib/tool_shed/util/commit_util.py @@ -292,6 +292,12 @@ revised = False toolshed = elem.get( 'toolshed' ) changeset_revision = elem.get( 'changeset_revision' ) + # Over a short period of time a bug existed which caused the prior_installation_required attribute + # to be set to False and included in the <repository> tag when a repository was exported along with + # its dependencies. The following will eliminate this problematic attribute upon import. + prior_installation_required = elem.get( 'prior_installation_required' ) + if prior_installation_required is not None and not asbool( prior_installation_required ): + del elem.attrib[ 'prior_installation_required' ] sub_elems = [ child_elem for child_elem in list( elem ) ] if len( sub_elems ) > 0: # At this point, a <repository> tag will point only to a package. @@ -310,7 +316,8 @@ # Set to None. sub_elements = None if unpopulate: - # We're exporting the repository, so eliminate all toolshed and changeset_revision attributes from the <repository> tag. + # We're exporting the repository, so eliminate all toolshed and changeset_revision attributes from the + # <repository> tag. if toolshed or changeset_revision: attributes = odict() attributes[ 'name' ] = name 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