]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_installman
dh_installman: Support .so links relative to the current section.
[debhelper.git] / dh_installman
index 8487f100776f295861148a84a8418a8e8f00c77d..1a5750b86a16f6ad7b7cdb7ca231fbc16f095765 100755 (executable)
@@ -241,7 +241,10 @@ sub find_so_man {
                    dirname($solink)) {
                        $solink=basename($solink);
                }
-               else {
+               # A so link with a path is relative to the base of the man
+               # page hierarchy, but without a path, is relative to the
+               # current section.
+               elsif ($solink =~ m!/!) {
                        $solink="../$solink";
                }