Fix comparation

This commit is contained in:
Jan Wagner 2012-03-29 17:31:24 +00:00
parent 600c2c7d4e
commit e1c0a488fe
2 changed files with 4 additions and 4 deletions

6
debian/changelog vendored
View file

@ -1,8 +1,8 @@
ps-watcher (1.08-5) UNRELEASED; urgency=low
ps-watcher (1.08-5) unstable; urgency=low
* NOT RELEASED YET
* Fix comparation in preinst script, realy (Closes: #666097)
-- Jan Wagner <waja@cyconet.org> Wed, 28 Mar 2012 19:35:49 +0200
-- Jan Wagner <waja@cyconet.org> Thu, 29 Mar 2012 11:56:23 +0200
ps-watcher (1.08-4) unstable; urgency=low

2
debian/preinst vendored
View file

@ -2,7 +2,7 @@
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
if [ "$1" = "upgrade" ] && [ "$2" ] && dpkg --compare-versions "$2" le "1.06-6"; then
pidof ps-watcher > /var/run/ps-watcher.pid
fi
#DEBHELPER#