]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_makeshlibs
r448: * dh_makeshlibs: only generate call to ldconfig if it really looks like
[debhelper.git] / dh_makeshlibs
index de29453c21e1c63c6ecdbca79f4ddb8c13e00f85..1888ee2d54f46112dc2e79cbcf4fc0451c94b68d 100755 (executable)
@@ -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}) {