aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-03-04 00:20:44 +0000
committerSam James <sam@gentoo.org>2021-03-04 00:20:44 +0000
commit96a87558e37bc639a90ad17d4ffe07fc4bb2f30f (patch)
treedb62c1e8b9232f1c968528846b2418efe46b9e2d /templates/tatt_functions.sh
parenttatt/usecombis.py: Tidy up (diff)
downloadtatt-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>
Diffstat (limited to 'templates/tatt_functions.sh')
-rw-r--r--templates/tatt_functions.sh4
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}"