diff options
author | Michael Palimaka <kensington@gentoo.org> | 2014-10-28 13:12:27 -0400 |
---|---|---|
committer | Rick Farina (Zero_Chaos) <zerochaos@gentoo.org> | 2014-10-28 13:12:27 -0400 |
commit | e811a9d7c4e31dbbff9eabb0d76ebb8d700d09e6 (patch) | |
tree | 37d54527bdb54ee70324961cf216da51c20a1bfa | |
parent | depcheck: resolve an issue where missing RDEPEND is not reported. (diff) | |
download | qa-scripts-e811a9d7c4e31dbbff9eabb0d76ebb8d700d09e6.tar.gz qa-scripts-e811a9d7c4e31dbbff9eabb0d76ebb8d700d09e6.tar.bz2 qa-scripts-e811a9d7c4e31dbbff9eabb0d76ebb8d700d09e6.zip |
dereference symlinks when needed
sometimes things like eselect manipulate symlinks that packages are
linked to, we need to dereference those symlinks to find the real
package to verify the deps
-rwxr-xr-x | depcheck | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -145,8 +145,14 @@ check_atom() { local libowner=`qfile -vqC ${link} | uniq` if [ ! "${libowner}" ]; then - ewarn "Warning: installed file ${obj} is linked to ${link} which is not owned by any installed atom." - continue + local dereferenced=`qfile -vqC $(readlink -f ${link}) | uniq` + if [ "${dereferenced}" ]; then + debug "Deferenced symlink and found real lib owner" + libowner=${dereferenced} + else + ewarn "Warning: installed file ${obj} is linked to ${link} which is not owned by any installed atom." + continue + fi fi debug "Owning package for ${link} is ${libowner}" |