[ps-watcher] 41/88: use postinst instead of prerm

Jan Wagner waja at alioth.debian.org
Fri Nov 8 23:06:38 UTC 2013


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

waja pushed a commit to branch master
in repository ps-watcher.

commit 6174521123f206fb089b3f61f4e436d9fb4451a8
Author: Jan Wagner <waja at cyconet.org>
Date:   Fri Jul 6 21:16:07 2007 +0000

    use postinst instead of prerm
---
 debian/changelog             |    4 ++--
 debian/{preinst => postinst} |    0
 debian/prerm                 |    8 --------
 3 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index d3e7516..d6107fa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,9 @@
 ps-watcher (1.06-7) unstable; urgency=low
 
   * update copyright
-  * use native debhelper postinst script
+  * use native debhelper prerm script
   * make start-stop-daemon working instead of using kill
-  * providing upgrade path via prerm
+  * providing upgrade path via postinst
 
  -- Jan Wagner <waja at cyconet.org>  Wed,  4 Jul 2007 12:26:57 +0200
 
diff --git a/debian/preinst b/debian/postinst
similarity index 100%
rename from debian/preinst
rename to debian/postinst
diff --git a/debian/prerm b/debian/prerm
deleted file mode 100755
index 513e294..0000000
--- a/debian/prerm
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-set -e
-
-# generate correct pid file, for versions where was non or incorrect
-if [ "$1" = "upgrade" ] && [ "$2" ] && dpkg --compare-versions "$2" <= "1.06-6"; then
-	ps aux | grep /usr/bin/ps-watcher | head -1 | awk '{ print $2 }' > /var/run/ps-watcher.pid
-fi
-#DEBHELPER#

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/ps-watcher.git



More information about the Pkg-perl-cvs-commits mailing list