diff --git a/scripts/process-debuginfo.in b/scripts/process-debuginfo.in index 1e4a2a6..9f1ca6b 100755 --- a/scripts/process-debuginfo.in +++ b/scripts/process-debuginfo.in @@ -60,7 +60,7 @@ done timestamp=$(date --iso-8601=ns --reference="$f") @RPMCONFIGDIR@/debugedit -b "$RPM_BUILD_DIR" -d /usr/src/debug -l .tmp/src.$$ "$f" -if [ ! -s .tmp/src.$$ ]; then +if [ ! -s .tmp/src.$$ ] && [ -x /usr/bin/eu-elfcompress ]; then # debugedit has failed to extract sources list, possibly # due to ELF compression - uncompress and try again. LD_ORIGIN_PATH=/usr/bin eu-readelf -S "$f" > .tmp/sections.$$