diff options
Diffstat (limited to 'eclass/boinc-app.eclass')
-rw-r--r-- | eclass/boinc-app.eclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/boinc-app.eclass b/eclass/boinc-app.eclass index 3a26e6738..f6fb82034 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 |