| Submitter | Enrico Scholz |
|---|---|
| Date | Feb. 11, 2013, 7:21 p.m. |
| Message ID | <1360610513-29322-2-git-send-email-enrico.scholz@sigma-chemnitz.de> |
| Download | mbox | patch |
| Permalink | /patch/44463/ |
| State | Accepted |
| Commit | 579369b0fb27fad6d628746a50b9b798078500f6 |
| Headers | show |
Comments
Patch
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index a74ec8a..f95fdf7 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -1000,12 +1000,8 @@ python package_fixsymlinks () { for path in pkgfiles[pkg]: rpath = path[len(inst_root):] pkg_files[pkg].append(rpath) - try: - rtarget = oe.path.realpath(path, inst_root, True) - os.lstat(rtarget) - except OSError, (err, strerror): - if err != errno.ENOENT: - raise + rtarget = oe.path.realpath(path, inst_root, True, assume_dir = True) + if not os.path.lexists(rtarget): dangling_links[pkg].append(os.path.normpath(rtarget[len(inst_root):])) newrdepends = {}