From: joeyh Date: Fri, 13 Apr 2007 16:32:56 +0000 (+0000) Subject: r1987: * Do script fragement reversal only in v6, since it can break certian X-Git-Tag: 5.0.45~1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=a0656a38e5b6b196cdece6951190ba77e28c76df;p=debhelper.git r1987: * Do script fragement reversal only in v6, since it can break certian third party programs such as dh_installtex. Closes: #419060 --- diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm index 9767959..c72e559 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"); diff --git a/debhelper.pod b/debhelper.pod index 123f726..b13dbcd 100644 --- a/debhelper.pod +++ b/debhelper.pod @@ -362,6 +362,11 @@ compared to V5: =item - +Commands that generate maintainer script fragements will order the +fragements in reverse order for the prerm and postrm scripts. + +=item - + dh_installwm will install a slave manpage link for x-window-manager.1.gz. =item - diff --git a/debian/changelog b/debian/changelog index e30fea6..6bb1ad7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,6 +12,8 @@ debhelper (5.0.45) UNRELEASED; urgency=low the rules file to the new location on upgrade. * This would be a good time for the many packages that manage rules files w/o using dh_installudev to begin to use it.. + * Do script fragement reversal only in v6, since it can break certian + third party programs such as dh_installtex. Closes: #419060 -- Joey Hess Thu, 12 Apr 2007 15:35:20 -0400