summaryrefslogtreecommitdiff
path: root/dh_installman
diff options
context:
space:
mode:
authorjoeyh <joeyh>2007-04-09 19:31:44 +0000
committerjoeyh <joeyh>2007-04-09 19:31:44 +0000
commita155491c23c692bb7cd38d7df19c1e41c701236b (patch)
treefd7e4e6b5a2466b69e9eca183d7de275899ee224 /dh_installman
parent96c6a5c2200ce8571a319f18f31a25ef3d3bf948 (diff)
r1980: * prerm and postrm scripts are now generated in a reverse order than
preinst and postinst scripts. For example, if a package uses dh_pysupport before dh_installinit, the prerm will first stop the init script and then remove the python files. * Introducing beginning of v6 mode. * dh_installwm: In v6 mode, install a slave manpage link for x-window-manager.1.gz. Done in v6 mode because some window managers probably work around this longstanding debhelper bug by registering the slave on their own. This bug was only fixable once programs moved out of /usr/X11R6. Closes: #85963 * dh_builddeb: In v6 mode, fix bug in DH_ALWAYS_EXCLUDE handling, to work the same as all the other code in debhelper. This could only be fixed in v6 mode because packages may potentially legitimately rely on the old buggy behavior. Closes: #242834 * dh_installman: In v6 mode, overwrite exsiting man pages. Closes: #288250
Diffstat (limited to 'dh_installman')
-rwxr-xr-xdh_installman14
1 files changed, 7 insertions, 7 deletions
diff --git a/dh_installman b/dh_installman
index 7f39b934..6dbafb82 100755
--- a/dh_installman
+++ b/dh_installman
@@ -163,14 +163,14 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
}
$destdir=~tr:/:/:s; # just for looks
- if (! -e "$destdir/$instname.$section" &&
- ! -l "$destdir/$instname.$section") {
- if (! -d $destdir) {
- doit "install","-d",$destdir;
- }
- doit "install","-p","-m644",$page,
- "$destdir$instname.$section$gz";
+ next if -l "$destdir/$instname.$section";
+ next if compat(5) && -e "$destdir/$instname.$section";
+
+ if (! -d $destdir) {
+ doit "install","-d",$destdir;
}
+ doit "install","-p","-m644",$page,
+ "$destdir$instname.$section$gz";
}