From 41174ff1268cc6585e7a770dc4f61b8ee4a77335 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Thu, 16 Jun 2022 00:40:41 +0200 Subject: [PATCH] R-packages.eclass: only suggest packages on non binary merge Signed-off-by: Alessandro Barbieri --- eclass/R-packages.eclass | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/eclass/R-packages.eclass b/eclass/R-packages.eclass index 1aa612403d..aed8cce84c 100644 --- a/eclass/R-packages.eclass +++ b/eclass/R-packages.eclass @@ -137,12 +137,14 @@ R-packages_src_install() { # @DESCRIPTION: # function that will prompt to install the suggested packages if they exist R-packages_pkg_postinst() { - if [[ -v SUGGESTED_PACKAGES ]]; then - for p in ${SUGGESTED_PACKAGES} ; do - pexist="$(pquery -n1 ${p} 2>/dev/null || die)" - if [[ -n "${pexist}" ]]; then - optfeature "having the upstream suggested package" "${p}" - fi - done + if [[ ${MERGE_TYPE} != binary ]]; then + if [[ -v SUGGESTED_PACKAGES ]]; then + for p in ${SUGGESTED_PACKAGES} ; do + pexist="$(pquery -n1 ${p} 2>/dev/null || die)" + if [[ -n "${pexist}" ]]; then + optfeature "having the upstream suggested package" "${p}" + fi + done + fi fi }