summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Joachim <svenjoac@gmx.de>2016-07-01 20:24:14 +0000
committerNiels Thykier <niels@thykier.net>2016-07-01 20:24:14 +0000
commit6307207499e493acd32b3043949a2982ca9d4e90 (patch)
tree16aafb4767a7d52606e10fde7e2c558531160537
parent55fe0560744bba8d15b4d723065db3dfd5ae6a4c (diff)
downloaddebhelper-6307207499e493acd32b3043949a2982ca9d4e90.tar.gz
dh_strip: Fix handling of hardlinked ELF when using build-ids
Improve handling of hardlinked ELF files when extracting dbgsyms using build-ids. This patches does not cover manual dbg packages under compat 8 or older. Signed-off-by: Niels Thykier <niels@thykier.net>
-rwxr-xr-xdh_strip3
1 files changed, 2 insertions, 1 deletions
diff --git a/dh_strip b/dh_strip
index 8d00e971..7d40c242 100755
--- a/dh_strip
+++ b/dh_strip
@@ -276,7 +276,8 @@ sub make_debug {
}
else {
# Compat 9 OR a dbgsym package.
- doit($objcopy, "--only-keep-debug", "--compress-debug-sections", $file, $debug_path);
+ doit($objcopy, "--only-keep-debug", "--compress-debug-sections", $file, $debug_path)
+ unless -e $debug_path;
}
# No reason for this to be executable.