diff -Nru debhelper-9.20140228ubuntu6/debian/changelog debhelper-9.20140228ubuntu7/debian/changelog --- debhelper-9.20140228ubuntu6/debian/changelog 2014-05-29 11:50:53.000000000 +0100 +++ debhelper-9.20140228ubuntu7/debian/changelog 2014-06-04 10:56:51.000000000 +0100 @@ -1,3 +1,10 @@ +debhelper (9.20140228ubuntu7) UNRELEASED; urgency=medium + + * Call update-rc.d remove in postrm, upon removing init.d scripts even + if a matching upstart job is present. (LP: #1326327) + + -- Dimitri John Ledkov Wed, 04 Jun 2014 10:56:07 +0100 + debhelper (9.20140228ubuntu6) utopic; urgency=medium * Fix the previous upload, by not calling update-rc.d on packages that diff -Nru debhelper-9.20140228ubuntu6/dh_installinit debhelper-9.20140228ubuntu7/dh_installinit --- debhelper-9.20140228ubuntu6/dh_installinit 2014-05-28 08:27:19.000000000 +0100 +++ debhelper-9.20140228ubuntu7/dh_installinit 2014-06-04 10:47:05.000000000 +0100 @@ -325,7 +325,8 @@ $script=$jobfile; autoscript($package,"preinst", "preinst-upstart-compatibility", "s!#OLD#!/etc/init.d/$script!g;s!#PACKAGE#!$package!g"); - } else { + } + if ($init ne '') { # removes rc.d links autoscript($package,"postrm","postrm-init", "s/#SCRIPT#/$script/g;s/#INITPARMS#/$params/;s/#ERROR_HANDLER#/$dh{ERROR_HANDLER}/");