roscreate-stack: simple warning message if dependency is not in a stack

This commit is contained in:
Ken Conley 2009-12-16 00:49:56 +00:00
parent 88e16da38a
commit a14867e093
1 changed files with 4 additions and 1 deletions

View File

@ -94,7 +94,10 @@ def compute_stack_depends_and_licenses(stack, packages):
stack_depends = {}
for pkg in pkg_depends:
st = roslib.stacks.stack_of(pkg)
if not st or st == stack:
if not st:
print >> sys.stderr, "WARNING: stack depends on [%s], which is not in a stack"%pkg
continue
if st == stack:
continue
if not st in stack_depends:
stack_depends[st] = []