Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/qa-scripts:master commit in: /
Date: Thu, 28 Aug 2014 03:48:04
Message-Id: 1409195980.d23d93380b5e9beccde37b016e4490a32de7db04.kensington@gentoo
1 commit: d23d93380b5e9beccde37b016e4490a32de7db04
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 28 03:19:40 2014 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 28 03:19:40 2014 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=d23d9338
7
8 depcheck: add simple virtual resolution.
9
10 ---
11 depcheck | 12 ++++++++++++
12 1 file changed, 12 insertions(+)
13
14 diff --git a/depcheck b/depcheck
15 index 39cd29c..549fe52 100755
16 --- a/depcheck
17 +++ b/depcheck
18 @@ -146,6 +146,18 @@ check_atom() {
19 isdep=`qdepends -r ${atom} | grep ${libowner_pn}`
20
21 if [ $? -ne 0 ]; then
22 +
23 + debug Checking if ${libowner_pn} is provided by a virtual
24 + for virtual in $(qdepends --nocolor --name-only --rdepend --query ${libowner_pn} | grep ^virtual/)
25 + do
26 + debug Checking if ${virtual} is in dependencies
27 + local isvirtualdep=$(qdepends -r ${atom} | grep ${virtual})
28 +
29 + if [ $? -eq 0 ]; then
30 + continue 2
31 + fi
32 + done
33 +
34 eerror "${obj} links to ${link}"
35 eindent
36 eerror Missing dependency on $(bold ${libowner_pn})