[ps-watcher] 65/88: be smarter

Jan Wagner waja at alioth.debian.org
Fri Nov 8 23:06:45 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 8bd82d31a9836e2eaa32dc73db7ac1fcb1f8e9ea
Author: Jan Wagner <waja at cyconet.org>
Date:   Fri Jul 24 18:00:08 2009 +0000

    be smarter
---
 debian/postinst |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/debian/postinst b/debian/postinst
index 21a0a63..e44e87a 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -2,11 +2,7 @@
 
 set -e
 
-if [ "$1" != "configure" ]; then
-	exit 0
-fi
-
-if [ "$2" ] && dpkg --compare-versions "$2" lt "1.08-1"; then
+if [ "$1" = "configure" ] && [ "$2" ] && dpkg --compare-versions "$2" lt "1.08-1"; then
     if [ -e /etc/rc2.d/S40ps-watcher ] && \
        [ -e /etc/rc3.d/S40ps-watcher ] && \
        [ -e /etc/rc4.d/S40ps-watcher ] && \

-- 
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