From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 96F6213877A for ; Thu, 28 Aug 2014 03:48:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C391AE0843; Thu, 28 Aug 2014 03:48:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6B0EAE0843 for ; Thu, 28 Aug 2014 03:48:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8DA3933BDD7 for ; Thu, 28 Aug 2014 03:48:02 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2F40C41AE for ; Thu, 28 Aug 2014 03:48:01 +0000 (UTC) From: "Michael Palimaka" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Palimaka" Message-ID: <1409197668.b37f1aec13985ec672e5eccd3447491fae202bcf.kensington@gentoo> Subject: [gentoo-commits] proj/qa-scripts:master commit in: / X-VCS-Repository: proj/qa-scripts X-VCS-Files: depcheck X-VCS-Directories: / X-VCS-Committer: kensington X-VCS-Committer-Name: Michael Palimaka X-VCS-Revision: b37f1aec13985ec672e5eccd3447491fae202bcf X-VCS-Branch: master Date: Thu, 28 Aug 2014 03:48:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: d1f1173d-c297-41f8-896e-5d98435b60bb X-Archives-Hash: d2892bbc9baf3d0c94e65344f5581b07 commit: b37f1aec13985ec672e5eccd3447491fae202bcf Author: Michael Palimaka gentoo org> AuthorDate: Thu Aug 28 03:47:48 2014 +0000 Commit: Michael Palimaka gentoo org> CommitDate: Thu Aug 28 03:47:48 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=b37f1aec depcheck: use simple virtual resolution in suspect RDEPEND check too. --- depcheck | 10 ++++++++++ 1 file changed, 10 insertions(+) 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