From 160c25404256f92e3300ea01f9bd09f0ee9f446f Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Sat, 26 Nov 2016 12:40:17 -0500 Subject: [PATCH] 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 16740a3126fb..0dc7b0d0027b 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 -- 2.26.2