aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/boost/archive.py
diff options
context:
space:
mode:
Diffstat (limited to 'project/boost/archive.py')
-rw-r--r--project/boost/archive.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/project/boost/archive.py b/project/boost/archive.py
index 55d05f2..e4c85e0 100644
--- a/project/boost/archive.py
+++ b/project/boost/archive.py
@@ -75,8 +75,10 @@ class TemporaryStorage(ArchiveStorage):
@contextmanager
def write_archive(self, version, contents):
- with tempfile.NamedTemporaryFile(prefix=f'boost_{version}_', suffix=version.archive_ext,
- dir=self._dir, delete=False) as dest:
+ temp = tempfile.NamedTemporaryFile(prefix=f'boost_{version}_',
+ suffix=version.archive_ext,
+ dir=self._dir, delete=False)
+ with temp as dest:
path = dest.name
logging.info('Writing Boost archive: %s', path)
dest.write(contents)