From 00cd5efe825614cba320ea43b2da3ad8076a8546 Mon Sep 17 00:00:00 2001 From: Brian Harring Date: Fri, 27 May 2011 09:46:14 +0000 Subject: for EAPI>=4, rely on PMS MERGE_TYPE rather than portage non-spec EMERGE_FROM; for EAPI<4, use EMERGE_FROM since it's acceptable there --- eclass/linux-mod.eclass | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'eclass/linux-mod.eclass') diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass index 3fef24b079f5..435fad36599d 100644 --- a/eclass/linux-mod.eclass +++ b/eclass/linux-mod.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.100 2011/04/24 18:55:20 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.101 2011/05/27 09:46:14 ferringb Exp $ # Author(s): John Mylchreest , # Stefan Schweizer @@ -576,8 +576,15 @@ find_module_params() { linux-mod_pkg_setup() { debug-print-function ${FUNCNAME} $* + local is_bin="${MERGE_TYPE}" + # If we are installing a binpkg, take a different path. - if [[ $EMERGE_FROM == binary ]]; then + # use MERGE_TYPE if available (eapi>=4); else use non-PMS EMERGE_FROM (eapi<4) + if has ${EAPI} 0 1 2 3; then + is_bin=${EMERGE_FROM} + fi + + if [[ ${is_bin} == binary ]]; then linux-mod_pkg_setup_binary return fi -- cgit v1.2.3-65-gdbad