From: joeyh Date: Thu, 13 Sep 2007 19:48:50 +0000 (+0000) Subject: r2026: * dh_strip: Don't run objcopy if the output file already exists. X-Git-Tag: 5.0.55~2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=09bf5892fcc47c94d77c8457b533643ec3b58ef8;p=debhelper.git r2026: * dh_strip: Don't run objcopy if the output file already exists. Closes: #380314 --- diff --git a/debian/changelog b/debian/changelog index d0cc7a1..d8d86b5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,8 +2,10 @@ debhelper (5.0.55) UNRELEASED; urgency=low * dh_desktop: Only generate calls to update-desktop-database for desktop files with MimeType fields. Patch from Emmet Hikory. Closes: #427831 + * dh_strip: Don't run objcopy if the output file already exists. + Closes: #380314 - -- Joey Hess Thu, 13 Sep 2007 15:11:06 -0400 + -- Joey Hess Thu, 13 Sep 2007 15:47:55 -0400 debhelper (5.0.54) unstable; urgency=low diff --git a/dh_strip b/dh_strip index e4e0698..ef91d65 100755 --- a/dh_strip +++ b/dh_strip @@ -156,7 +156,9 @@ sub make_debug { if (! -d $debug_dir) { doit("install", "-d", $debug_dir); } - doit("objcopy", "--only-keep-debug", $file, $debug_path); + if (! -e $debug_path) { + doit("objcopy", "--only-keep-debug", $file, $debug_path); + } # No reason for this to be executable. doit("chmod", 644, $debug_path); return $debug_path;