diff options
author | Michael Palimaka <kensington@gentoo.org> | 2014-08-28 13:47:48 +1000 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2014-08-28 13:47:48 +1000 |
commit | b37f1aec13985ec672e5eccd3447491fae202bcf (patch) | |
tree | 16d6648939ac14ece50eb91265a8edb1dcc6c0dc /depcheck | |
parent | depcheck: add simple virtual resolution. (diff) | |
download | qa-scripts-b37f1aec13985ec672e5eccd3447491fae202bcf.tar.gz qa-scripts-b37f1aec13985ec672e5eccd3447491fae202bcf.tar.bz2 qa-scripts-b37f1aec13985ec672e5eccd3447491fae202bcf.zip |
depcheck: use simple virtual resolution in suspect RDEPEND check too.
Diffstat (limited to 'depcheck')
-rwxr-xr-x | depcheck | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -59,6 +59,7 @@ check_atom() { local atom=$1 local checked=() local rdepends=() + local used_virtuals=() local objects=`qlist -qo ${atom}` @@ -154,6 +155,7 @@ check_atom() { local isvirtualdep=$(qdepends -r ${atom} | grep ${virtual}) if [ $? -eq 0 ]; then + used_virtuals+=( ${virtual} ) continue 2 fi done @@ -176,6 +178,14 @@ check_atom() { if [[ ${rdepend} = !* ]] ; then debug Skipping blocker: ${rdepend} continue + elif [[ ${rdepend} = virtual/* ]] ; then + for virtual in "${used_virtuals[@]}" + do + if [[ ${virtual} == $(remove_atom_version ${rdepend}) ]]; then + debug Skipping virtual: ${rdepend} + continue 2 + fi + done fi ebuild_rdepends+=( $(remove_atom_version $rdepend) ) done |