[Reproducible-commits] [debhelper] 03/05: Revert "postrm-init: Tweak to avoid triggering a lintian warning"

Mattia Rizzolo mattia at mapreri.org
Thu Nov 26 22:49:30 UTC 2015


This is an automated email from the git hooks/post-receive script.

mapreri-guest pushed a commit to branch master
in repository debhelper.

commit 02cd0cec1c05ee09697cdbf0800f1aca6b1c79d4
Author: Niels Thykier <niels at thykier.net>
Date:   Thu Nov 26 18:02:31 2015 +0100

    Revert "postrm-init: Tweak to avoid triggering a lintian warning"
    
    This reverts commit 2059ab8e431cd7ba8392f79c70950e44ce04dc64.
---
 autoscripts/postrm-init | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/autoscripts/postrm-init b/autoscripts/postrm-init
index 978bcf5..9881b1c 100644
--- a/autoscripts/postrm-init
+++ b/autoscripts/postrm-init
@@ -1,13 +1,12 @@
-if [ "$1" = "remove" ] || [ "$1" = "purge" ] ; then
-	_action=remove
-	if [ "$1" = "remove" ] ; then
-		# Attempt to disable but ignore failures as it is not
-		# required (and the script must be a able to handle
-		# being called while the package is removed, but not
-		# yet purged)
-		_action=disable
-	fi
-	update-rc.d #SCRIPT# ${_action} >/dev/null
+if [ "$1" = "remove" ] ; then
+	# Attempt to disable but ignore failures as it is not
+	# required (and the script must be a able to handle
+	# being called while the package is removed, but not
+	# yet purged)
+	update-rc.d #SCRIPT# disable >/dev/null || true
+fi
+if [ "$1" = "purge" ] ; then
+	update-rc.d #SCRIPT# remove >/dev/null
 fi
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debhelper.git



More information about the Reproducible-commits mailing list