linux-info.eclass: get_version: remove useless readlink -f
authorMike Gilbert <floppym@gentoo.org>
Sat, 26 Nov 2016 17:40:17 +0000 (12:40 -0500)
committerMike Gilbert <floppym@gentoo.org>
Thu, 15 Dec 2016 15:41:07 +0000 (10:41 -0500)
The values get clobbered immediately afterward, so why bother?

eclass/linux-info.eclass

index 16740a3126fb7b8f3240a5d658503e9a72b5325d..0dc7b0d0027b8ca9846c4c9eee0a123aa0b7da9f 100644 (file)
@@ -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