From 484bf0181a38bd95edc504165b09c81e96c37755 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Aug 08 2018 15:22:59 +0000 Subject: create parent dir for symlink if needed --- diff --git a/hub/kojihub.py b/hub/kojihub.py index c8d588f..c17f724 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -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)