From 9b5d02ef76dd925309aa9aea4718b0a304841ebe Mon Sep 17 00:00:00 2001 From: Tobias Fischer Date: Thu, 6 May 2021 08:39:58 +1000 Subject: [PATCH] Port https://github.com/ros-infrastructure/rosdep/pull/661 part 3 --- src/rosdep2/platforms/source.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rosdep2/platforms/source.py b/src/rosdep2/platforms/source.py index 862494b72..3ba17fedc 100644 --- a/src/rosdep2/platforms/source.py +++ b/src/rosdep2/platforms/source.py @@ -302,6 +302,7 @@ def install_source(resolved): rd_debug('Extracting tarball') tarf = tarfile.open(filename) tarf.extractall(tempdir) + tarf.close() else: rd_debug('Bypassing tarball extraction as it is a dmg') rd_debug('Running installation script')