aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2014-09-25 02:40:19 +1000
committerMichael Palimaka <kensington@gentoo.org>2014-09-25 02:43:21 +1000
commitbf90e71df4e003dada5464a941a20f4c70a4c755 (patch)
tree8a68d7860d3260c7d0f546efdc8635615bb187d2 /depcheck
parentadd explicit dep check (diff)
downloadqa-scripts-bf90e71df4e003dada5464a941a20f4c70a4c755.tar.gz
qa-scripts-bf90e71df4e003dada5464a941a20f4c70a4c755.tar.bz2
qa-scripts-bf90e71df4e003dada5464a941a20f4c70a4c755.zip
depcheck: ensure that missing RDEPEND is also reported during a virtual check
It was failing due to a difference in return code handling: a() { local x=$(false) echo $? } b() { local x x=$(false) echo $? } a b returning: 0 1
Diffstat (limited to 'depcheck')
-rwxr-xr-xdepcheck3
1 files changed, 2 insertions, 1 deletions
diff --git a/depcheck b/depcheck
index dae0cd9..93abeb1 100755
--- a/depcheck
+++ b/depcheck
@@ -58,7 +58,8 @@ virtualcheck() {
for virtual in $(qdepends --nocolor --name-only --${1} --query ${libowner_pn} | grep ^virtual/)
do
debug Checking if ${virtual} is in dependencies
- local isvirtualdep=$(qdepends --${1} ${atom} | grep ${virtual})
+ local isvirtualdep
+ isvirtualdep=$(qdepends --${1} ${atom} | grep ${virtual})
if [ $? -eq 0 ]; then
used_virtuals+=( ${virtual} )