commit/galaxy-central: greg: Filter invalid objects when generating the list of repository_dependencies objects that are associated with a tool shed repository installed into Galaxy.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/c42567f43aa7/ Changeset: c42567f43aa7 User: greg Date: 2013-08-19 19:19:56 Summary: Filter invalid objects when generating the list of repository_dependencies objects that are associated with a tool shed repository installed into Galaxy. Affected #: 1 file diff -r e9ee9c5d30aef4390a94823990221d3876785726 -r c42567f43aa762a45f7eb7fc0917260edcaa5636 lib/galaxy/model/__init__.py --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -3548,7 +3548,8 @@ for rrda in self.required_repositories: repository_dependency = rrda.repository_dependency required_repository = repository_dependency.repository - required_repositories.append( required_repository ) + if required_repository: + required_repositories.append( required_repository ) return required_repositories @property def installed_repository_dependencies( self ): @@ -3568,6 +3569,7 @@ return missing_required_repositories @property def repository_dependencies_being_installed( self ): + """Return the repository's repository dependencies that are currently being installed.""" required_repositories_being_installed = [] for required_repository in self.repository_dependencies: if required_repository.status == self.installation_status.INSTALLING: @@ -3575,6 +3577,7 @@ return required_repositories_being_installed @property def repository_dependencies_missing_or_being_installed( self ): + """Return the repository's repository dependencies that are either missing or currently being installed.""" required_repositories_missing_or_being_installed = [] for required_repository in self.repository_dependencies: if required_repository.status in [ self.installation_status.ERROR, @@ -3585,6 +3588,7 @@ return required_repositories_missing_or_being_installed @property def repository_dependencies_with_installation_errors( self ): + """Return the repository's repository dependencies that have installation errors.""" required_repositories_with_installation_errors = [] for required_repository in self.repository_dependencies: if required_repository.status == self.installation_status.ERROR: 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