commit: 38859cfcd369b51e39973e1410d94cd80cde26e7
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 14 05:27:57 2026 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Feb 14 05:27:57 2026 +0000
URL: https://gitweb.gentoo.org/proj/tattoo.git/commit/?id=38859cfc
pkgdev.tatt.template.sh: move `name` assignment earlier
Fixes: 6ba62500e1937be0ad1d8e59b65a1f06a23ad295
Signed-off-by: Sam James <sam <AT> gentoo.org>
pkgdev.tatt.template.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/pkgdev.tatt.template.sh b/pkgdev.tatt.template.sh
index 438c5a7..a1aa73b 100644
--- a/pkgdev.tatt.template.sh
+++ b/pkgdev.tatt.template.sh
@@ -84,6 +84,10 @@ tatt_test_pkg() {
EMERGE_OUTPUT=/dev/tty
fi
+ # --usepkg-exclude needs the package name, so let's extract it
+ # from the atom we have
+ local name=$( pquery --no-version "${1}" )
+
# We run some emerge commands twice here with --usepkg=n because of a
# --with-test-deps quirk (bug #639588).
if [[ ${2} == "--test" ]]; then
@@ -112,10 +116,6 @@ tatt_test_pkg() {
printf "%s %s\n" "${1}" "${TUSE}" >
"/etc/portage/package.use/pkgdev_tatt_{{ job_name }}/${CP}"
- # --usepkg-exclude needs the package name, so let's extract it
- # from the atom we have
- local name=$( pquery --no-version "${1}" )
-
eout=$( tattoo_emerge "${1}" --oneshot --getbinpkg=n
--usepkg-exclude="${name}" )
local RES=$?