[puppet] Only try to run 0.25.x -> 2.6.x pid file updates on EL

Todd Zullinger tmz at fedoraproject.org
Wed Feb 22 04:02:52 UTC 2012


commit 73d9e796558b2fb975d2bddb984ec1c9523c1f5b
Author: Todd Zullinger <tmz at pobox.com>
Date:   Tue Feb 21 14:39:09 2012 -0500

    Only try to run 0.25.x -> 2.6.x pid file updates on EL
    
    No supported Fedora releases ever had 0.25.5, so they could never
    require the ugly upgrade code in %post.  If/when we move EL to 2.7.x,
    these can be dropped entirely.

 puppet.spec |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/puppet.spec b/puppet.spec
index 1b57fda..fbc7835 100644
--- a/puppet.spec
+++ b/puppet.spec
@@ -225,6 +225,7 @@ exit 0
 
 %post
 /sbin/chkconfig --add puppet || :
+%if 0%{?rhel}
 if [ "$1" -ge 1 ]; then
   # The pidfile changed from 0.25.x to 2.6.x, handle upgrades without leaving
   # the old process running.
@@ -235,9 +236,11 @@ if [ "$1" -ge 1 ]; then
       /sbin/service puppet start) >/dev/null 2>&1 || :
   fi
 fi
+%endif
 
 %post server
 /sbin/chkconfig --add puppetmaster || :
+%if 0%{?rhel}
 if [ "$1" -ge 1 ]; then
   # The pidfile changed from 0.25.x to 2.6.x, handle upgrades without leaving
   # the old process running.
@@ -248,6 +251,7 @@ if [ "$1" -ge 1 ]; then
       /sbin/service puppetmaster start) >/dev/null 2>&1 || :
   fi
 fi
+%endif
 
 %preun
 if [ "$1" = 0 ] ; then
@@ -280,6 +284,7 @@ rm -rf %{buildroot}
 - Bump minimum ruby version to 1.8.5 now that EL-4 is all but dead
 - Update install locations for Fedora-17 / Ruby-1.9
 - Use ruby($lib) for augeas and shadow requirements
+- Only try to run 0.25.x -> 2.6.x pid file updates on EL
 
 * Thu Jan 05 2012 Todd Zullinger <tmz at pobox.com> - 2.6.13-2
 - Revert to minimal patch for augeas >= 0.10 (bz#771097)


More information about the scm-commits mailing list