From f5827d8b4b1d7c7a6a0274f65fdd0160e8559d57 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 13 Feb 2014 17:12:09 +0100 Subject: [PATCH] hooks/post-install/03-strip-and-debug-pkgs.sh: respect $noarch and $nostrip. --- common/hooks/post-install/03-strip-and-debug-pkgs.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/hooks/post-install/03-strip-and-debug-pkgs.sh b/common/hooks/post-install/03-strip-and-debug-pkgs.sh index 825b0520b5..4cd4d26437 100644 --- a/common/hooks/post-install/03-strip-and-debug-pkgs.sh +++ b/common/hooks/post-install/03-strip-and-debug-pkgs.sh @@ -59,6 +59,10 @@ create_debug_pkg() { hook() { local fname= x= f= _soname= + if [ -n "$nostrip" -o -n "$noarch" ]; then + return 0 + fi + find ${PKGDESTDIR} -type f | while read f; do fname=$(basename "$f") for x in ${nostrip_files}; do