From 60dd63db42211dbbd67908fca13d196ec38dad3a Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sun, 12 Mar 2017 11:50:34 +0100 Subject: eutils.eclass: prune_libtool_files, punt pointless Prefix logic Remove the unnecessary Prefix logic from prune_libtool_files(). There is no functional difference between starting a find in ${D} and ${ED} (since ${D} is not supposed to contain other directories on a Prefix system), and using the latter implies unnecessary hackery for older EAPIs. --- eclass/eutils.eclass | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'eclass/eutils.eclass') diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index e036001dc5e1..ab226b236a37 100644 --- a/eclass/eutils.eclass +++ b/eclass/eutils.eclass @@ -898,7 +898,6 @@ prune_libtool_files() { debug-print-function ${FUNCNAME} "$@" local removing_all removing_modules opt - _eutils_eprefix_init for opt; do case "${opt}" in --all) @@ -1008,7 +1007,7 @@ prune_libtool_files() { einfo "Removing unnecessary ${f#${D%/}} (${reason})" queue+=( "${f}" ) fi - done < <(find "${ED}" -xtype f -name '*.la' -print0) + done < <(find "${D}" -xtype f -name '*.la' -print0) if [[ ${queue[@]} ]]; then rm -f "${queue[@]}" -- cgit v1.2.3-65-gdbad