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