]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
- kill weird overquoting
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 25 Oct 2010 12:57:56 +0000 (12:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.589

rpm.macros

index 380814c7df01f1cfccd3fc2f6eae7f106c93a598..07a287cb420f9e8c33199bec7aa731d8740b8bad 100644 (file)
@@ -1967,18 +1967,18 @@ else: \
 
 # migrate from init script to upstart job
 %upstart_post() \
-       if [ -f /var/lock/subsys/"%1" ] ; then \
-               /sbin/service --no-upstart "%1" stop \
-               /sbin/service "%1" start \
+       if [ -f /var/lock/subsys/%1 ]; then \
+               /sbin/service --no-upstart %1 stop \
+               /sbin/service %1 start \
        fi
 
 # restart the job after upgrade or migrate to init script on removal
 # cannot be stopped with 'service' as /etc/init/$name.conf may be missing
 # at this point
 %upstart_postun() \
-       if [ -x /sbin/initctl ] && /sbin/initctl status "%1" 2>/dev/null | grep -q 'running' ; then \
-               /sbin/initctl stop "%1" >/dev/null 2>&1 \
-               [ -f "/etc/rc.d/init.d/%1" -o -f "/etc/init/%1.conf" ] && { echo -n "Re-" ; /sbin/service "%1" start ; } ; \
+       if [ -x /sbin/initctl ] && /sbin/initctl status %1 2>/dev/null | grep -q 'running' ; then \
+               /sbin/initctl stop %1 >/dev/null 2>&1 \
+               [ -f /etc/rc.d/init.d/%1 -o -f /etc/init/%1.conf ] && { echo -n "Re-"; /sbin/service %1 start; }; \
        fi
 
 # vim:ts=4 sw=4 noet ft=spec
This page took 0.064764 seconds and 4 git commands to generate.