summaryrefslogtreecommitdiff
path: root/dh_installdocs
diff options
context:
space:
mode:
Diffstat (limited to 'dh_installdocs')
-rwxr-xr-xdh_installdocs5
1 files changed, 4 insertions, 1 deletions
diff --git a/dh_installdocs b/dh_installdocs
index e835ff69..3eefcdfa 100755
--- a/dh_installdocs
+++ b/dh_installdocs
@@ -175,10 +175,13 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
if (! -d "$tmp/usr/share/doc/$package" &&
! -l "$tmp/usr/share/doc/$package") {
doit("ln", "-sf", $dh{LINK_DOC}, "$tmp/usr/share/doc/$package");
+ # Call isnative because it sets $dh{VERSION}
+ # as a side effect.
+ isnative($dh{LINK_DOC});
# Policy says that if you make your documentation
# directory a symlink, then you have to depend on
# the target.
- addsubstvar($package, "misc:Depends", $dh{LINK_DOC});
+ addsubstvar($package, "misc:Depends", "$dh{LINK_DOC} (= $dh{VERSION})");
}
}
else {