commit:     160c25404256f92e3300ea01f9bd09f0ee9f446f
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 26 17:40:17 2016 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Thu Dec 15 15:41:07 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=160c2540

linux-info.eclass: get_version: remove useless readlink -f

The values get clobbered immediately afterward, so why bother?

 eclass/linux-info.eclass | 2 --
 1 file changed, 2 deletions(-)

diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
index 16740a3..0dc7b0d 100644
--- a/eclass/linux-info.eclass
+++ b/eclass/linux-info.eclass
@@ -445,7 +445,6 @@ get_version() {
        # KV_DIR will contain the full path to the sources directory we should 
use
        [ -z "${get_version_warning_done}" ] && \
        qeinfo "Determining the location of the kernel source code"
-       [ -h "${KERNEL_DIR}" ] && KV_DIR="$(readlink -f ${KERNEL_DIR})"
        [ -d "${KERNEL_DIR}" ] && KV_DIR="${KERNEL_DIR}"
 
        if [ -z "${KV_DIR}" ]
@@ -539,7 +538,6 @@ get_version() {
                done
        fi
 
-       [ -h "${OUTPUT_DIR}" ] && KV_OUT_DIR="$(readlink -f ${OUTPUT_DIR})"
        [ -d "${OUTPUT_DIR}" ] && KV_OUT_DIR="${OUTPUT_DIR}"
        if [ -n "${KV_OUT_DIR}" ];
        then

Reply via email to