From: Joey Hess Date: Tue, 18 May 2010 16:30:06 +0000 (-0400) Subject: dh_installman: Avoid converting .so links to symlinks if the link target is not prese... X-Git-Tag: 7.9.1~24 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9dd0ae97130e8a6c1f3c2c49fe24d53fae454e5e;p=debhelper.git dh_installman: Avoid converting .so links to symlinks if the link target is not present in the same binary package, on advice of Colin Watson. (To support eventual so search paths.) --- diff --git a/debian/changelog b/debian/changelog index 594ef7c..fa04d07 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,9 @@ debhelper (7.4.21) UNRELEASED; urgency=low * dh_installman: Support .so links relative to the current section. + * dh_installman: Avoid converting .so links to symlinks if the link + target is not present in the same binary package, on advice of + Colin Watson. (To support eventual so search paths.) -- Joey Hess Mon, 17 May 2010 20:01:19 -0400 diff --git a/dh_installman b/dh_installman index 1a5750b..703b70b 100755 --- a/dh_installman +++ b/dh_installman @@ -248,8 +248,10 @@ sub find_so_man { $solink="../$solink"; } - push @sofiles,"$File::Find::dir/$_"; - push @sodests,$solink; + if (-e $solink || -e "$solink.gz") { + push @sofiles,"$File::Find::dir/$_"; + push @sodests,$solink; + } } }