Skip to content

Commit

Permalink
Revert "Revert "consider condition for group membership (#69)" (#70)"
Browse files Browse the repository at this point in the history
This reverts commit 787b892.
  • Loading branch information
dirk-thomas authored Feb 17, 2018
1 parent 787b892 commit f50e88d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ament_package/group_dependency.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,7 @@ def evaluate_condition(self, context):
def extract_group_members(self, packages):
self.members = set()
for pkg in packages:
if self.name in [g.name for g in pkg.member_of_groups]:
for g in pkg.member_of_groups:
assert g.evaluated_condition is not None
if self.name in [g.name for g in pkg.member_of_groups if g.evaluated_condition]:
self.members.add(pkg.name)

0 comments on commit f50e88d

Please sign in to comment.