Skip to content
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.

package.oeclass: properly handle broken symlinks #188

Merged
merged 1 commit into from
Nov 10, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion classes/package.oeclass
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ def do_package(d):
os.system("tar cf %s/%s_%s_%s.tar ."%(outdir, package, pv, buildhash))
srcfile = "%s_%s_%s.tar"%(package, pv, buildhash)
symlink = "%s/%s_%s.tar"%(outdir, package, pv)
if os.path.exists(symlink):
#lexists() to make sure we also check for broken symlinks
if os.path.lexists(symlink):
os.remove(symlink)
os.symlink(srcfile, symlink)

Expand Down