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

Commit

Permalink
Merge pull request #188 from kimrhh/fix-package-symlink-handling
Browse files Browse the repository at this point in the history
package.oeclass: properly handle broken symlinks
  • Loading branch information
esben authored Nov 10, 2016
2 parents 742aefd + 61b9a7d commit 2622a11
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 2622a11

Please sign in to comment.