commit:     ad209cde65eb56bc53fbe08106a6059daca1293b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Mar  4 00:25:39 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Mar  4 00:25:39 2021 +0000
URL:        https://gitweb.gentoo.org/proj/tatt.git/commit/?id=ad209cde

templates/tatt_functions.sh: add explanatory comment

See: 96a87558e37bc639a90ad17d4ffe07fc4bb2f30f
Bug: #72
Signed-off-by: Sam James <sam <AT> gentoo.org>

 templates/tatt_functions.sh | 2 ++
 1 file changed, 2 insertions(+)

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 )

Reply via email to