fix rosmake for non-empty stacks (fix #4068)

This commit is contained in:
Dirk Thomas 2013-01-23 22:56:16 +00:00
parent 879f10a396
commit 4f6098f854
1 changed files with 7 additions and 6 deletions

View File

@ -761,9 +761,10 @@ class RosMakeAll:
required_packages = self.specified_packages[:]
# catch dependent packages which are inside of zero sized stacks #3528
# catch packages of dependent stacks when specified stack is zero-sized #3528
# add them to required list but not the specified list.
for s in stacks_arguments:
if not rosstack.packages_of(s):
for d in rosstack.get_depends(s, implicit=False):
try:
required_packages.extend(rosstack.packages_of(d))