Skip to contentSkip to conversation

bitbake fetch2/file: fix symlink not created issue

PATCH New [email protected] 1 participant 1 message Jul 16, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake fetch2/file: fix symlink not created issue

From: Ting Liu <[email protected]>

---
 bitbake/lib/bb/fetch2/__init__.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
bitbake/lib/bb/fetch2/__init__.py +4 -1
index dcada12..7a4e43b 100644
@@ -835,7 +835,10 @@ def try_mirror_url(origud, ud, ld, check = False):
                 # Broken symbolic link
                 os.unlink(origud.localpath)
 
-            os.symlink(ud.localpath, origud.localpath)
+            bb.utils.mkdirhier(os.path.dirname(origud.localpath))
+            src = os.path.join(dldir, ud.localpath)
+            os.symlink(src, origud.localpath)
+
         update_stamp(origud, ld)
         return ud.localpath
 
Signature · 1 line
1.7.3.4