aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2014-08-28 13:47:48 +1000
committerMichael Palimaka <kensington@gentoo.org>2014-08-28 13:47:48 +1000
commitb37f1aec13985ec672e5eccd3447491fae202bcf (patch)
tree16d6648939ac14ece50eb91265a8edb1dcc6c0dc /depcheck
parentdepcheck: add simple virtual resolution. (diff)
downloadqa-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-xdepcheck10
1 files changed, 10 insertions, 0 deletions
diff --git a/depcheck b/depcheck
index 549fe52..e715e81 100755
--- a/depcheck
+++ b/depcheck
@@ -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