4 from xml.dom
import minidom
11 p = subprocess.Popen([
'rospack',
'find', package], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
12 out, err = p.communicate()
24 if os.path.exists(
'%s/package.xml'%root):
27 elif os.path.exists(
'%s/manifest.xml'%root):
28 found[package] =
False 35 if not os.path.exists(name):
37 xmldoc = minidom.parse(name)
38 if 'package.xml' in name:
39 builds = xmldoc.getElementsByTagName(
'build_depend')
40 runs = xmldoc.getElementsByTagName(
'run_depend')
41 return [item.firstChild.nodeValue
for item
in builds+runs]
42 elif 'manifest.xml' in name:
43 itemlist = xmldoc.getElementsByTagName(
'depend')
44 return [item.attributes[
'package'].value
for item
in itemlist]
58 s =
"%s%s"%(
" "*depth, package)
59 print s,
" "*(50-len(s)),
"CATKIN" if is_cat
else "ROSPACK" 69 for arg
in sys.argv[1:]:
72 for arg
in sys.argv[1:]:
def is_catkinized(package, root=None)
def check_status(package, depth=0, dlimit=0)