PR#3247: Fix makedirs for existing dirs
Merges #3247 https://pagure.io/koji/pull-request/3247 Fixes: #3097 https://pagure.io/koji/issue/3097 Write signed copies atomically
This commit is contained in:
commit
e73b0680ae
1 changed files with 1 additions and 1 deletions
|
|
@ -962,7 +962,7 @@ def splice_rpm_sighdr(sighdr, src, dst=None, bufsize=8192):
|
|||
(start, size) = find_rpm_sighdr(src)
|
||||
if dst is not None:
|
||||
dirname = os.path.dirname(dst)
|
||||
os.makedirs(dirname)
|
||||
os.makedirs(dirname, exist_ok=True)
|
||||
(fd, dst_temp) = tempfile.mkstemp(dir=dirname)
|
||||
else:
|
||||
(fd, dst_temp) = tempfile.mkstemp()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue