mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
sstate.bbclass: Only create symlinks to different localpath urls if the fetch succeeded
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -318,8 +318,9 @@ def pstaging_fetch(sstatepkg, d):
|
|||||||
bb.fetch.go(localdata, [srcuri])
|
bb.fetch.go(localdata, [srcuri])
|
||||||
# Need to optimise this, if using file:// urls, the fetcher just changes the local path
|
# Need to optimise this, if using file:// urls, the fetcher just changes the local path
|
||||||
# For now work around by symlinking
|
# For now work around by symlinking
|
||||||
if bb.data.expand(bb.fetch.localpath(srcuri, localdata), localdata) != sstatepkg:
|
localpath = bb.data.expand(bb.fetch.localpath(srcuri, localdata), localdata)
|
||||||
os.symlink(bb.data.expand(bb.fetch.localpath(srcuri, localdata), localdata), sstatepkg)
|
if localpath != sstatepkg and os.path.exists(localpath):
|
||||||
|
os.symlink(localpath, sstatepkg)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user