summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2016-11-26 12:40:17 -0500
committerMike Gilbert <floppym@gentoo.org>2016-12-15 10:41:07 -0500
commit160c25404256f92e3300ea01f9bd09f0ee9f446f (patch)
treeb34d98af468d8655245af3e5820cd945b29c76f5 /eclass/linux-info.eclass
parentkde-misc/gmailfeed: new package (diff)
downloadgentoo-160c25404256f92e3300ea01f9bd09f0ee9f446f.tar.gz
gentoo-160c25404256f92e3300ea01f9bd09f0ee9f446f.tar.bz2
gentoo-160c25404256f92e3300ea01f9bd09f0ee9f446f.zip
linux-info.eclass: get_version: remove useless readlink -f
The values get clobbered immediately afterward, so why bother?
Diffstat (limited to 'eclass/linux-info.eclass')
-rw-r--r--eclass/linux-info.eclass2
1 files changed, 0 insertions, 2 deletions
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
index 16740a3126f..0dc7b0d0027 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