From c1015ee592de1804c1100b5c0d70865579c72b6e Mon Sep 17 00:00:00 2001 From: Alphat-PC Date: Wed, 13 Mar 2013 20:29:23 -0700 Subject: [PATCH] prepstrip: skip redundant build ID ln -s calls --- bin/ebuild-helpers/prepstrip | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ebuild-helpers/prepstrip b/bin/ebuild-helpers/prepstrip index 38faaef3e..eda221266 100755 --- a/bin/ebuild-helpers/prepstrip +++ b/bin/ebuild-helpers/prepstrip @@ -165,8 +165,8 @@ save_elf_debug() { local buildid_dir="${ED}usr/lib/debug/.build-id/${buildid:0:2}" local buildid_file="${buildid_dir}/${buildid:2}" mkdir -p "${buildid_dir}" - ln -s "../../${x:${#D}}.debug" "${buildid_file}.debug" - ln -s "/${x:${#D}}" "${buildid_file}" + [ -L "${buildid_file}".debug ] || ln -s "../../${x:${#D}}.debug" "${buildid_file}.debug" + [ -L "${buildid_file}" ] || ln -s "/${x:${#D}}" "${buildid_file}" fi } -- 2.26.2