summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2019-08-26 11:30:31 +0200
committerPanu Matilainen <pmatilai@redhat.com>2019-08-28 12:16:52 +0300
commit44a3eabd108693349d7a6f90f407a091ef4e746b (patch)
tree15ccd4cf153ff3e68aa2f4437f48fb6bdfa94359
parent93d51506c3f7c391a23462a9b7ccda71d7187a60 (diff)
downloadrpm-44a3eabd108693349d7a6f90f407a091ef4e746b.tar.gz
Remove unused variable id in find-debuginfo.sh
There's code setting variable id in scripts/find-debuginfo.sh, but there's no subsequent use. The only use of $id in the script is in do_file, where it is a local variable. The variable setting was introduced in commit 6b3b435fa "Add dwz debuginfo compression support" in combination with a subsequent make_id_link using the variable, but the make_id_link was removed in commit bbfe1f86b "Add build-id links to rpm for all ELF files". Remove the unused variable. (cherry picked from commit 08ca76f1cac5b1f203b687520ecaea005983274e)
-rwxr-xr-xscripts/find-debuginfo.sh4
1 files changed, 0 insertions, 4 deletions
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
index 7624b3f36..212f12791 100755
--- a/scripts/find-debuginfo.sh
+++ b/scripts/find-debuginfo.sh
@@ -539,10 +539,6 @@ if $run_dwz \
echo "original debug info size: ${size_before}kB, size after compression: ${size_after}kB"
# Remove .dwz directory if empty
rmdir "${RPM_BUILD_ROOT}/usr/lib/debug/.dwz" 2>/dev/null
- if [ -f "${RPM_BUILD_ROOT}/usr/lib/debug/.dwz/${dwz_multifile_name}" ]; then
- id="`readelf -Wn "${RPM_BUILD_ROOT}/usr/lib/debug/.dwz/${dwz_multifile_name}" \
- 2>/dev/null | sed -n 's/^ Build ID: \([0-9a-f]\+\)/\1/p'`"
- fi
# dwz invalidates .gnu_debuglink CRC32 in the main files.
cat "$ELFBINSFILE" |