From: Alphat-PC Date: Thu, 14 Mar 2013 03:29:23 +0000 (-0700) Subject: prepstrip: skip redundant build ID ln -s calls X-Git-Tag: v2.2.0_alpha167~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c1015ee592de1804c1100b5c0d70865579c72b6e;p=portage.git prepstrip: skip redundant build ID ln -s calls --- 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 }