commit:     5f59042ba48b944f9d97e10fd83b24222cb5b48d
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Sun Jun  8 16:29:28 2014 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sun Jun  8 16:29:30 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=5f59042b

tinderbox: add DEPCHECK_BIN configuration variable.

It's not packaged anywhere, so people might want to store it in a
custom location.

---
 tinderbox/bashrc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tinderbox/bashrc b/tinderbox/bashrc
index 584a9a1..121f20e 100644
--- a/tinderbox/bashrc
+++ b/tinderbox/bashrc
@@ -60,6 +60,7 @@
 #      - make_jobserver
 #      - unicode_errors
 
+: ${DEPCHECK_BIN:="/usr/bin/depcheck"}
 : ${TINDERBOX_DIR:="/var/lib/tinderbox"}
 
 PACKAGE_DATA_DIR="${TINDERBOX_DIR}/${CATEGORY}/${PN}"
@@ -112,8 +113,8 @@ tinderbox_postinst_checks() {
                SANDBOX_ON=0 rm "${BUILD_DATA_DIR}"/portageqa
        fi
 
-       if type -P depcheck > /dev/null ; then
-               SANDBOX_ON=0 depcheck ${PF} > "${BUILD_DATA_DIR}"/depcheck
+       if type -P "${DEPCHECK_BIN}" > /dev/null ; then
+               SANDBOX_ON=0 "${DEPCHECK_BIN}" ${PF} > 
"${BUILD_DATA_DIR}"/depcheck
        fi
 }
 

Reply via email to