packages: cronie/cronie.spec - rel 13 - don't exit from trigger

baggins baggins at pld-linux.org
Wed Feb 8 12:38:03 CET 2012


Author: baggins                      Date: Wed Feb  8 11:38:03 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- rel 13
- don't exit from trigger

---- Files affected:
packages/cronie:
   cronie.spec (1.55 -> 1.56) 

---- Diffs:

================================================================
Index: packages/cronie/cronie.spec
diff -u packages/cronie/cronie.spec:1.55 packages/cronie/cronie.spec:1.56
--- packages/cronie/cronie.spec:1.55	Mon Feb  6 17:30:21 2012
+++ packages/cronie/cronie.spec	Wed Feb  8 12:37:58 2012
@@ -18,7 +18,7 @@
 Summary:	Cron daemon for executing programs at set times
 Name:		cronie
 Version:	1.4.8
-Release:	12
+Release:	13
 License:	MIT and BSD and GPL v2
 Group:		Daemons
 Source0:	https://fedorahosted.org/releases/c/r/cronie/%{name}-%{version}.tar.gz
@@ -180,17 +180,18 @@
 fi
 %systemd_reload
 
-%triggerpostun -- cronie < 1.4.8-11
+%triggerpostun -- cronie < 1.4.8-13
 if [ -f /etc/sysconfig/cron ]; then
 	. /etc/sysconfig/cron
 	__CROND_ARGS=
 	[ "$CROND_SYSLOG_RESULT" = "yes" ] && __CROND_ARGS="-s"
 	[ -n "$CROND_MAIL_PROG" ] && __CROND_ARGS="$__CROND_ARGS -m $CROND_MAIL_PROG"
-	[ -z "$__CROND_ARGS" ] && exit 0
-	cp -f /etc/sysconfig/cron{,.rpmsave}
-	echo >>/etc/sysconfig/cron
-	echo "# Added by rpm trigger" >>/etc/sysconfig/cron
-	echo "CROND_ARGS=\"$CROND_ARGS $__CROND_ARGS\"" >>/etc/sysconfig/cron
+	if [ -n "$__CROND_ARGS" ]; then
+		cp -f /etc/sysconfig/cron{,.rpmsave}
+		echo >>/etc/sysconfig/cron
+		echo "# Added by rpm trigger" >>/etc/sysconfig/cron
+		echo "CROND_ARGS=\"$CROND_ARGS $__CROND_ARGS\"" >>/etc/sysconfig/cron
+	fi
 fi
 %systemd_trigger cronie.service
 
@@ -256,6 +257,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.56  2012/02/08 11:37:58  baggins
+- rel 13
+- don't exit from trigger
+
 Revision 1.55  2012/02/06 16:30:21  baggins
 - rel 12
 - hide obsolete options from sysconfig
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/cronie/cronie.spec?r1=1.55&r2=1.56&f=u



More information about the pld-cvs-commit mailing list