aboutsummaryrefslogtreecommitdiffstats
path: root/find-debuginfo.sh
diff options
context:
space:
mode:
Diffstat (limited to 'find-debuginfo.sh')
-rwxr-xr-xfind-debuginfo.sh11
1 files changed, 2 insertions, 9 deletions
diff --git a/find-debuginfo.sh b/find-debuginfo.sh
index f9861ac..8390b14 100755
--- a/find-debuginfo.sh
+++ b/find-debuginfo.sh
@@ -22,14 +22,6 @@
# All file names in switches are relative to builddir (. if not given).
#
-debugedit=/usr/lib/rpm/debugedit
-if [ ! -x $debugedit ]; then
- # rpm5 since 5.2 has moved these binaries to a separate 'bin' subdirectory
- if [ -x /usr/lib/rpm/bin/debugedit ]; then
- debugedit=/usr/lib/rpm/bin/debugedit
- fi
-fi
-
# With -g arg, pass it to strip on libraries.
strip_g=false
@@ -219,7 +211,8 @@ while read nlinks inum f; do
fi
echo "extracting debug info from $f"
- id=$($debugedit -b "$RPM_BUILD_DIR" -d /usr/src/debug \
+
+ id=$(/usr/lib/rpm/debugedit -b "$RPM_BUILD_DIR" -d /usr/src/debug \
-i -l "$SOURCEFILE" "$f") || exit
if [ -z "$id" ]; then
echo >&2 "*** ${strict_error}: No build ID note found in $f"