commit:     6ba62500e1937be0ad1d8e59b65a1f06a23ad295
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 14 05:23:55 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Feb 14 05:23:55 2026 +0000
URL:        https://gitweb.gentoo.org/proj/tattoo.git/commit/?id=6ba62500

pkgdev.tatt.template.sh: pre-install dependencies for non-tests

Otherwise, we do --getbinpkg=n ... on the only run (unlike for tests)
and can't make use of binpkgs. This was originally added in tatt.git
in eafc7c666d773cfd3b8295474a24cb6eef0919ce because I think --usepkg-exclude
may not work correctly (yet) for --getbinpkg.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 pkgdev.tatt.template.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pkgdev.tatt.template.sh b/pkgdev.tatt.template.sh
index bff82e9..438c5a7 100644
--- a/pkgdev.tatt.template.sh
+++ b/pkgdev.tatt.template.sh
@@ -100,6 +100,9 @@ tatt_test_pkg() {
         printf "%s pkgdev_tatt_{{ job_name }}_test\n" "${1}"> 
"/etc/portage/package.env/pkgdev_tatt_{{ job_name }}/${CP}"
         echo "features: test" >> "{{ report_file }}"
     else
+        # Try to pre-emerge dependencies so that we can make use of getbinpkg
+        # here.
+        tattoo_emerge "${1}" --onlydeps --quiet --oneshot 
--usepkg-exclude="${name}"
         printf "%s pkgdev_tatt_{{ job_name }}_no_test\n" "${1}" > 
"/etc/portage/package.env/pkgdev_tatt_{{ job_name }}/${CP}"
         echo "features: " >> "{{ report_file }}"
     fi

Reply via email to