projects
/
cdist.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd23f04
)
Create temp directory if it doesn't exist.
author
Carl Hetherington
<cth@carlh.net>
Wed, 19 Jul 2023 20:29:28 +0000
(22:29 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 19 Jul 2023 20:29:28 +0000
(22:29 +0200)
cdist
patch
|
blob
|
history
diff --git
a/cdist
b/cdist
index b9687d708d4ee1dc8e8839d1c6d0c3fec6c8c4ba..338119437540ac376effe1c7c4c21412398ef59d 100755
(executable)
--- a/
cdist
+++ b/
cdist
@@
-421,6
+421,11
@@
class Target:
self.build_dependencies = True
if directory is None:
+ try:
+ os.makedirs(config.get('temp'))
+ except OSError as e:
+ if e.errno != 17:
+ raise e
self.directory = tempfile.mkdtemp('', 'tmp', config.get('temp'))
self.rmdir = True
self.set('CCACHE_BASEDIR', os.path.realpath(self.directory))