[debhelper-devel] [debhelper] 01/01: dh_strip: capture strip(1)'s --help output (on stderr)

Niels Thykier nthykier at moszumanska.debian.org
Thu Apr 16 18:33:21 UTC 2015


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

nthykier pushed a commit to branch master
in repository debhelper.

commit 3b5d1782a52a8578f7340db17cff73c3094765cd
Author: Niels Thykier <niels at thykier.net>
Date:   Thu Apr 16 20:31:22 2015 +0200

    dh_strip: capture strip(1)'s --help output (on stderr)
    
    Reported-by: Jérémy Bobbio
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 dh_strip | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dh_strip b/dh_strip
index cadaf26..1ffaaf7 100755
--- a/dh_strip
+++ b/dh_strip
@@ -236,7 +236,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 	}
 
 	if (@static_libs) {
-		my $strip_help = qx{$strip};
+		my $strip_help = qx{$strip 2>&1};
 		my @opts = ('--strip-debug');
 		if (index($strip_help, '--enable-deterministic-archives') > -1) {
 			# NB: The short variant (-D) is broken in Jessie

-- 
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