diff options
author | 2014-09-25 02:40:19 +1000 | |
---|---|---|
committer | 2014-09-25 02:43:21 +1000 | |
commit | bf90e71df4e003dada5464a941a20f4c70a4c755 (patch) | |
tree | 8a68d7860d3260c7d0f546efdc8635615bb187d2 /depcheck | |
parent | add explicit dep check (diff) | |
download | qa-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-x | depcheck | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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} ) |