aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-03-04 00:25:39 +0000
committerSam James <sam@gentoo.org>2021-03-04 00:25:39 +0000
commitad209cde65eb56bc53fbe08106a6059daca1293b (patch)
treeffe1255335eba1b0ae83efccadf48838d91acc9d
parenttemplates/tatt_functions.sh: pass package name (not atom) to --usepkg-exclude (diff)
downloadtatt-ad209cde65eb56bc53fbe08106a6059daca1293b.tar.gz
tatt-ad209cde65eb56bc53fbe08106a6059daca1293b.tar.bz2
tatt-ad209cde65eb56bc53fbe08106a6059daca1293b.zip
templates/tatt_functions.sh: add explanatory comment
See: 96a87558e37bc639a90ad17d4ffe07fc4bb2f30f Bug: #72 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--templates/tatt_functions.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/tatt_functions.sh b/templates/tatt_functions.sh
index 78b65ee..75f6ba4 100644
--- a/templates/tatt_functions.sh
+++ b/templates/tatt_functions.sh
@@ -55,6 +55,8 @@ function tatt_test_pkg
TFEATURES="${FEATURES}"
fi
+ # --usepkg-exclude needs the package name, so let's extract it
+ # from the atom we have
local name=$(portageq pquery "${1:?}" -n)
eout=$( FEATURES="${TFEATURES}" emerge -1 --getbinpkg=n --usepkg-exclude="${name}" ${TATT_EMERGEOPTS} "${1:?}" 2>&1 1>/dev/tty )