[dovecot] posttrans argument is always zero

Michal Hlavinka mhlavink at fedoraproject.org
Fri Jun 22 13:17:36 UTC 2012


commit 30158818a7a437a58474f66ee051e25ac7fbf599
Author: Michal Hlavinka <mhlavink at redhat.com>
Date:   Fri Jun 22 15:17:34 2012 +0200

    posttrans argument is always zero

 dovecot.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/dovecot.spec b/dovecot.spec
index fbfa04f..6ba075b 100644
--- a/dovecot.spec
+++ b/dovecot.spec
@@ -3,7 +3,7 @@ Name: dovecot
 Epoch: 1
 Version: 2.1.7
 #global prever .rc6
-Release: 3%{?dist}
+Release: 4%{?dist}
 #dovecot itself is MIT, a few sources are PD, pigeonhole is LGPLv2
 License: MIT and LGPLv2
 Group: System Environment/Daemons
@@ -313,7 +313,7 @@ fi
 %posttrans
 # dovecot should be started again in %postun, but it's not executed on reinstall
 # if it was already started, restart_flag won't be here, so it's ok to test it again
-if [ "$1" -ge "1" -a -e %restart_flag ]; then
+if [ -e %restart_flag ]; then
 %if %{?fedora}0 > 140 || %{?rhel}0 > 60
     /bin/systemctl start dovecot.service >/dev/null 2>&1 || :
 %else
@@ -457,6 +457,9 @@ make check
 %{_libdir}/%{name}/dict/libdriver_pgsql.so
 
 %changelog
+* Fri Jun 22 2012 Michal Hlavinka <mhlavink at redhat.com> - 1:2.1.7-4
+- posttrans argument is always zero
+
 * Fri Jun 15 2012 Michal Hlavinka <mhlavink at redhat.com> - 1:2.1.7-3
 - do not let dovecot run during upgrade (#134325)
 


More information about the scm-commits mailing list