create parent dir for symlink if needed
This commit is contained in:
parent
b92afc0fed
commit
484bf0181a
1 changed files with 3 additions and 0 deletions
|
|
@ -4966,6 +4966,9 @@ def ensure_volume_symlink(binfo):
|
|||
os.unlink(basedir)
|
||||
elif os.path.exists(basedir):
|
||||
raise koji.GenericError('Unexpected build content: %s', basedir)
|
||||
else:
|
||||
# parent dir might not exist
|
||||
koji.ensuredir(os.path.dirname(basedir))
|
||||
os.symlink(relpath, basedir)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue