diff --git a/core/rosbuild/bin/download_checkmd5.py b/core/rosbuild/bin/download_checkmd5.py index e3ceb972..ad277e60 100755 --- a/core/rosbuild/bin/download_checkmd5.py +++ b/core/rosbuild/bin/download_checkmd5.py @@ -16,6 +16,11 @@ def main(): else: parser.error("wrong number of arguments") + # Create intermediate directories as necessary, #2970 + d = os.path.dirname(dest) + if len(d) and not os.path.exists(d): + os.makedirs(d) + fresh = False if not os.path.exists(dest): sys.stdout.write('[rosbuild] Downloading %s to %s...'%(uri, dest))