[packages/php/PHP_5_5] keep backups and original files whenever it's so easy

glen glen at pld-linux.org
Sun May 31 16:01:35 CEST 2015


commit 2ef5b6115b49941123314fa29c513c0cf5524fe3
Author: Tomasz Pala <gotar at pld-linux.org>
Date:   Sun May 31 14:23:59 2015 +0200

    keep backups and original files whenever it's so easy

 php.spec | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/php.spec b/php.spec
index 44c7b3b..79b0089 100644
--- a/php.spec
+++ b/php.spec
@@ -2700,7 +2700,7 @@ fi
 %service %{name}-fpm restart
 
 %preun fpm
-if [ "$1" = 0 ]; then
+if [ "$1" = "0" ]; then
 	%service %{name}-fpm stop
 	/sbin/chkconfig --del %{name}-fpm
 fi
@@ -2750,8 +2750,8 @@ for f in /etc/php/*.ini.rpmsave /etc/php/*.d/*.ini.rpmsave; do
 	fn=${fn%.rpmsave}
 	nf=%{_sysconfdir}/$dn/$fn
 	test -f "$nf" || continue
-	cp -vf $nf{,.rpmnew}
-	mv -vf $f $nf
+	cp -vfb $nf{,.rpmnew}
+	cp -vfb $f $nf
 	%{__sed} -i -e '
 		s#%{_libdir}/php#%{_libdir}/%{name}#
 		s#/etc/php#%{_sysconfdir}#
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/0443386d0ec978978d275b138d60249da53d67df



More information about the pld-cvs-commit mailing list