From 50b84aa2d1160992a84dcfeefd7748a491147ccc Mon Sep 17 00:00:00 2001 From: "Anna (cybertailor) Vyalkova" Date: Fri, 12 Jul 2024 13:40:43 +0500 Subject: [PATCH] boinc-app.eclass: use standard inherit guard style Signed-off-by: Anna (cybertailor) Vyalkova --- eclass/boinc-app.eclass | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eclass/boinc-app.eclass b/eclass/boinc-app.eclass index 3a26e6738b..f6fb82034b 100644 --- a/eclass/boinc-app.eclass +++ b/eclass/boinc-app.eclass @@ -22,7 +22,7 @@ case ${EAPI} in 8) ;; - *) die "${ECLASS}: EAPI ${EAPI} unsupported." + *) die "${ECLASS}: EAPI ${EAPI:-0} unsupported" esac # @ECLASS_VARIABLE: BOINC_APP_OPTIONAL @@ -34,10 +34,6 @@ esac # If you enable BOINC_APP_OPTIONAL, you have to call boinc-app # default phase functions and add dependencies manually. -if [[ ! ${BOINC_APP_OPTIONAL} ]]; then - EXPORT_FUNCTIONS pkg_postinst pkg_postrm -fi - if [[ ! ${_BOINC_APP_ECLASS} ]]; then # @ECLASS_VARIABLE: BOINC_MASTER_URL @@ -382,3 +378,7 @@ boinc-app_pkg_postrm() { _BOINC_APP_ECLASS=1 fi + +if [[ ! ${BOINC_APP_OPTIONAL} ]]; then + EXPORT_FUNCTIONS pkg_postinst pkg_postrm +fi