diff options
author | Sam James <sam@gentoo.org> | 2021-03-04 00:20:44 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-03-04 00:20:44 +0000 |
commit | 96a87558e37bc639a90ad17d4ffe07fc4bb2f30f (patch) | |
tree | db62c1e8b9232f1c968528846b2418efe46b9e2d | |
parent | tatt/usecombis.py: Tidy up (diff) | |
download | tatt-96a87558e37bc639a90ad17d4ffe07fc4bb2f30f.tar.gz tatt-96a87558e37bc639a90ad17d4ffe07fc4bb2f30f.tar.bz2 tatt-96a87558e37bc639a90ad17d4ffe07fc4bb2f30f.zip |
templates/tatt_functions.sh: pass package name (not atom) to --usepkg-exclude
Fixes: eafc7c666d773cfd3b8295474a24cb6eef0919ce
Fixes: https://github.com/gentoo/tatt/issues/72
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | templates/tatt_functions.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/tatt_functions.sh b/templates/tatt_functions.sh index 2893dc0..78b65ee 100644 --- a/templates/tatt_functions.sh +++ b/templates/tatt_functions.sh @@ -55,7 +55,9 @@ function tatt_test_pkg TFEATURES="${FEATURES}" fi - eout=$( FEATURES="${TFEATURES}" emerge -1 --getbinpkg=n --usepkg-exclude="${1:?}" ${TATT_EMERGEOPTS} "${1:?}" 2>&1 1>/dev/tty ) + local name=$(portageq pquery "${1:?}" -n) + + eout=$( FEATURES="${TFEATURES}" emerge -1 --getbinpkg=n --usepkg-exclude="${name}" ${TATT_EMERGEOPTS} "${1:?}" 2>&1 1>/dev/tty ) if [[ $? == 0 ]] ; then if [ -n "${TFEATURES}" ]; then echo -n "FEATURES='${TFEATURES}' " >> "${TATT_REPORTFILE}" |