summaryrefslogtreecommitdiff
path: root/dh_installman
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2018-05-10 07:13:59 +0000
committerNiels Thykier <niels@thykier.net>2018-05-10 07:13:59 +0000
commit439fd0aaa68c9de747b5abb395b8c5c620c91df7 (patch)
tree4969f6bf418f59950975bbe63d2bd0b952969772 /dh_installman
parentf51eec1ec890eacf624333227505fdb38f4375db (diff)
downloaddebhelper-439fd0aaa68c9de747b5abb395b8c5c620c91df7.tar.gz
Revert "dh_installman: Handle .so plus target both being compressed"
This reverts commit f51eec1ec890eacf624333227505fdb38f4375db.
Diffstat (limited to 'dh_installman')
-rwxr-xr-xdh_installman13
1 files changed, 3 insertions, 10 deletions
diff --git a/dh_installman b/dh_installman
index 27507425..6879abac 100755
--- a/dh_installman
+++ b/dh_installman
@@ -351,17 +351,10 @@ sub find_so_man {
elsif ($solink =~ m!/!) {
$solink="../$solink";
}
- my $target;
- if ( -e $solink) {
- $target = $solink;
- } elsif (-e "${solink}.gz") {
- $target = "${solink}.gz";
- }
-
- if (defined($target)) {
- push(@sofiles,"$File::Find::dir/$_");
- push(@sodests, $target);
+ if (-e $solink || -e "$solink.gz") {
+ push @sofiles,"$File::Find::dir/$_";
+ push @sodests,$solink;
}
}
}