Bug#582757: exits with 1 after package removal
Clint Byrum
clint at ubuntu.com
Sun Aug 21 17:25:11 UTC 2011
Package: zookeeper
Version: 3.3.3+dfsg2-1
Followup-For: Bug #582757
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch
In Ubuntu, the attached patch was applied to achieve the following:
* d/zookeeper.cron.daily: handle return code of 1 so daily cron job
does not produce error emails when the package is removed but not
purged. (LP: #830601)
Thanks for considering the patch.
-- System Information:
Debian Release: wheezy/sid
APT prefers oneiric-updates
APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500, 'oneiric')
Architecture: amd64 (x86_64)
Kernel: Linux 3.0.0-8-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
=== modified file 'debian/zookeeper.cron.daily'
--- debian/zookeeper.cron.daily 2010-06-01 13:25:34 +0000
+++ debian/zookeeper.cron.daily 2011-08-21 17:09:10 +0000
@@ -1,4 +1,4 @@
#!/bin/sh
ZK_PURGE_SCRIPT=/usr/share/zookeeper/bin/zkPurgeTxnLog.sh
-[ -r $ZK_PURGE_SCRIPT ] && . $ZK_PURGE_SCRIPT
+[ -r $ZK_PURGE_SCRIPT ] && . $ZK_PURGE_SCRIPT || :
More information about the pkg-java-maintainers
mailing list