summaryrefslogtreecommitdiff
path: root/Debian
diff options
context:
space:
mode:
authorjoeyh <joeyh>2007-04-13 16:32:56 +0000
committerjoeyh <joeyh>2007-04-13 16:32:56 +0000
commita0656a38e5b6b196cdece6951190ba77e28c76df (patch)
tree3f9f6b9ed4e865431ef40daa325d2a0f69326689 /Debian
parentfb38675cf96e1f87e025992837c8b1e88f4ae199 (diff)
downloaddebhelper-a0656a38e5b6b196cdece6951190ba77e28c76df.tar.gz
r1987: * Do script fragement reversal only in v6, since it can break certian
third party programs such as dh_installtex. Closes: #419060
Diffstat (limited to 'Debian')
-rw-r--r--Debian/Debhelper/Dh_Lib.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm
index 97679590..c72e559f 100644
--- a/Debian/Debhelper/Dh_Lib.pm
+++ b/Debian/Debhelper/Dh_Lib.pm
@@ -423,7 +423,8 @@ sub autoscript {
}
}
- if (-e $outfile && ($script eq 'postrm' || $script eq 'prerm')) {
+ if (-e $outfile && ($script eq 'postrm' || $script eq 'prerm')
+ && !compat(5)) {
# Add fragments to top so they run in reverse order when removing.
complex_doit("echo \"# Automatically added by ".basename($0)."\"> $outfile.new");
complex_doit("sed \"$sed\" $infile >> $outfile.new");