[debhelper-devel] [debhelper] 04/05: dh_strip: Remove redundant if-statement

Niels Thykier nthykier at moszumanska.debian.org
Sat Dec 16 13:34:17 UTC 2017


This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository debhelper.

commit 6503cf535c01726cb63f17f4c67499233103a175
Author: Niels Thykier <niels at thykier.net>
Date:   Tue Dec 12 21:37:27 2017 +0000

    dh_strip: Remove redundant if-statement
---
 dh_strip | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/dh_strip b/dh_strip
index ade28a5..6261c83 100755
--- a/dh_strip
+++ b/dh_strip
@@ -357,14 +357,11 @@ sub process_packages {
 			attach_debug($objcopy, $_, $debug_path) if defined $debug_path;
 		}
 
-		if (@static_libs) {
-			foreach (@static_libs) {
-				# NB: The short variant (-D) is broken in Jessie
-				# (binutils/2.25-3)
-				doit($strip, '--strip-debug', '--remove-section=.comment',
-					 '--remove-section=.note', '--enable-deterministic-archives',
-					 $_);
-			}
+		foreach (@static_libs) {
+			# NB: The short variant (-D) is broken in Jessie
+			# (binutils/2.25-3)
+			doit($strip, '--strip-debug', '--remove-section=.comment',
+				 '--remove-section=.note', '--enable-deterministic-archives', $_);
 		}
 		if ($no_auto_dbgsym and $use_build_id > 1) {
 			# When DEB_BUILD_OPTIONS contains noautodbgsym, remove the

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git




More information about the debhelper-devel mailing list