diff options
Diffstat (limited to 'Debian')
-rw-r--r-- | Debian/Debhelper/Dh_Lib.pm | 3 |
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"); |