From 535944fdf5b2a32a856cbaa92463d519f75e206f Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Tue, 31 May 2016 06:46:33 +0200 Subject: ptxd_make_xpkg_pkg: never overwrite a specified strip argument If a strip argument is given, don't overwrite it with the readelf result. This avoids some unnecessary calls of readelf but may break packages with incorrect strip arguments. Signed-off-by: Michael Olbrich --- scripts/lib/ptxd_make_xpkg_pkg.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh b/scripts/lib/ptxd_make_xpkg_pkg.sh index 51bd85f1d..efee9e7da 100644 --- a/scripts/lib/ptxd_make_xpkg_pkg.sh +++ b/scripts/lib/ptxd_make_xpkg_pkg.sh @@ -314,10 +314,10 @@ install ${cmd}: echo "using '$(ptxd_print_path "${src}")' instead" fi && - if [ "${strip}" != "n" ]; then + if [ -z "${strip}" ]; then if ! readelf -h "${src}" &> /dev/null; then strip="n" - elif [ -z "${strip}" ]; then + else strip="y" fi fi && -- cgit v1.2.3