diff --git a/bin/rosmake b/bin/rosmake index 803c8b23..5680f161 100755 --- a/bin/rosmake +++ b/bin/rosmake @@ -40,7 +40,9 @@ def assert_rospack_built(): # Do not try to build rospack if a ROS_NOBUILD flag is present return True - if subprocess.call(["make", "-C", os.path.join(os.environ["ROS_ROOT"], "tools/rospack")], stdout=subprocess.PIPE, stderr=subprocess.PIPE) : + #cmd = ["make", "-C", os.path.join(os.environ["ROS_ROOT"], "tools/rospack")] Doesn't work with cmake 2.6, will trigger rebuilds due to different paths. Fixed in 2.8. + cmd = ["bash", "-c", "cd %s && make"%(os.path.join(os.environ["ROS_ROOT"], "tools/rospack"))] + if subprocess.call(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) : print "Rospack failed to build" return False