From 58a5fcfd24ecc319d4f5cc632d32ef31ef14079e Mon Sep 17 00:00:00 2001 From: joey Date: Fri, 23 Feb 2001 22:41:21 +0000 Subject: r448: * dh_makeshlibs: only generate call to ldconfig if it really looks like a given *.so* file is indeed a shared library. --- dh_makeshlibs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dh_makeshlibs') diff --git a/dh_makeshlibs b/dh_makeshlibs index de29453c..1888ee2d 100755 --- a/dh_makeshlibs +++ b/dh_makeshlibs @@ -94,7 +94,6 @@ foreach my $package (@{$dh{DOPACKAGES}}) { my $major; chomp; - $need_ldconfig=1; # The second evil regexp is for db3, whose author should # be shot. if (m#.*/([^/]*)\.so\.(\d*)\.?# || m#.*/([^/]*)-([^\s/]+)\.so$#) { @@ -121,6 +120,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { } if (defined($library) && defined($major) && defined($deps) && $library ne '' && $major ne '' && $deps ne '') { + $need_ldconfig=1; # Prevent duplicate lines from entering the file. my $line="$library $major $deps"; if (! $seen{$line}) { -- cgit v1.2.3