[polipo] fix copy/paste errors
Bernard Johnson
bjohnson at fedoraproject.org
Tue Sep 27 04:19:10 UTC 2011
commit 3184fab2c216b039c9dd669e68ba2e42741d6eba
Author: Bernard Johnson <bjohnson at symetrix.com>
Date: Mon Sep 26 22:18:45 2011 -0600
fix copy/paste errors
polipo.spec | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/polipo.spec b/polipo.spec
index cd6375d..8b5f358 100644
--- a/polipo.spec
+++ b/polipo.spec
@@ -101,7 +101,7 @@ exit 0
if [ $1 -eq 1 ]; then
# package install, not upgrade
-%if 0{?_with_systemd}
+%if 0%{?_with_systemd}
/bin/systemctl daemon-reload > /dev/null 2>&1 || :
%else
/sbin/chkconfig --add %{name} || :
@@ -113,7 +113,7 @@ fi
if [ $1 = 0 ] ; then
# package removal, not upgrade
-%if 0{?_with_systemd}
+%if 0%{?_with_systemd}
/sbin/systemctl disable %{name}.service > /dev/null 2>&1 || :
/sbin/systemctl stop %{name}.service > /dev/null 2>&1 || :
%else
@@ -125,14 +125,14 @@ if [ $1 = 0 ] ; then
fi
%postun
-%if 0{?_with_systemd}
+%if 0%{?_with_systemd}
/bin/systemctl daemon-reload > /dev/null 2>&1 || :
%endif
if [ $1 -ge 1 ] ; then
# package upgrade, not uninstall
-%if 0{?_with_systemd}
+%if 0%{?_with_systemd}
/bin/systemctl try-restart %{name}.service > /dev/null 2>&1 || :
%else
/sbin/service %{name} condrestart >/dev/null 2>&1 || :
@@ -140,7 +140,7 @@ if [ $1 -ge 1 ] ; then
fi
-%if 0{?_with_systemd}
+%if 0%{?_with_systemd}
%triggerun -- %{name} < 1.0.4.1-4
if /sbin/chkconfig %{name}; then
/bin/systemctl enable %{name}.service > /dev/null 2>&1 || :
@@ -163,7 +163,7 @@ fi
%attr(0755,root,root) %{_sysconfdir}/NetworkManager/dispatcher.d/*
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
-%if 0{?_with_systemd}
+%if 0%{?_with_systemd}
%{_unitdir}/%{name}.service
%else
%attr(0755,root,root) %{_initddir}/%{name}
More information about the scm-commits
mailing list