summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Pagano <mpagano@gentoo.org>2016-12-02 15:19:43 -0500
committerMike Pagano <mpagano@gentoo.org>2016-12-02 15:20:20 -0500
commitebe7e5add54b4843f1c376d7def771b20c346895 (patch)
treeaeb75c2b04b9b2f9cab34c6b2cd49640b771ff31 /eclass
parentnet-misc/youtube-viewer: update HOMEPAGE, #600332 (diff)
downloadgentoo-ebe7e5add54b4843f1c376d7def771b20c346895.tar.gz
gentoo-ebe7e5add54b4843f1c376d7def771b20c346895.tar.bz2
gentoo-ebe7e5add54b4843f1c376d7def771b20c346895.zip
kernel-2.eclass: Minor cleanup. Remove die from global scope per EAPI 6 rules.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kernel-2.eclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index 547153c0769..91a24e9c6a1 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -544,9 +544,6 @@ elif [[ ${ETYPE} == headers ]]; then
unset KBUILD_OUTPUT
SLOT="0"
-else
- eerror "Unknown ETYPE=\"${ETYPE}\", must be \"sources\" or \"headers\""
- die "Unknown ETYPE=\"${ETYPE}\", must be \"sources\" or \"headers\""
fi
# Cross-compile support functions
@@ -1371,6 +1368,11 @@ kernel-2_pkg_setup() {
fi
ABI="${KERNEL_ABI}"
+ if [[ ${ETYPE} != sources ]] && [[ ${ETYPE} != headers ]]; then
+ eerror "Unknown ETYPE=\"${ETYPE}\", must be \"sources\" or \"headers\""
+ die "Unknown ETYPE=\"${ETYPE}\", must be \"sources\" or \"headers\""
+ fi
+
[[ ${ETYPE} == headers ]] && setup_headers
[[ ${ETYPE} == sources ]] && echo ">>> Preparing to unpack ..."
}