diff options
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index cd7dc4f132..c1523fc1c1 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -1097,6 +1097,8 @@ def try_mirror_url(fetch, origud, ud, ld, check = False): | |||
1097 | 1097 | ||
1098 | def ensure_symlink(target, link_name): | 1098 | def ensure_symlink(target, link_name): |
1099 | if not os.path.exists(link_name): | 1099 | if not os.path.exists(link_name): |
1100 | dirname = os.path.dirname(link_name) | ||
1101 | bb.utils.mkdirhier(dirname) | ||
1100 | if os.path.islink(link_name): | 1102 | if os.path.islink(link_name): |
1101 | # Broken symbolic link | 1103 | # Broken symbolic link |
1102 | os.unlink(link_name) | 1104 | os.unlink(link_name) |