[packages/apache/feat/conf-modules] handle trigger if no matching glob
glen
glen at pld-linux.org
Sat May 2 21:53:07 CEST 2015
commit 5052fcb6cfeb3814d6d64948461e5b8a21df5524
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat May 2 22:53:02 2015 +0300
handle trigger if no matching glob
apache.spec | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/apache.spec b/apache.spec
index f97f58f..5350c96 100644
--- a/apache.spec
+++ b/apache.spec
@@ -33,7 +33,7 @@ Summary(ru.UTF-8): Самый популярный веб-сервер
Summary(tr.UTF-8): Lider WWW tarayıcı
Name: apache
Version: 2.4.12
-Release: 3.26
+Release: 3.28
License: Apache v2.0
Group: Networking/Daemons/HTTP
Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2
@@ -2964,7 +2964,7 @@ sed -i -e '
s,^LockFile /var/run/httpd/accept.lock,Mutex file:/var/run/httpd/,g
' /etc/httpd/conf.d/10_mpm.conf
-%triggerpostun base -- %{name}-base < 2.4.12-3.15
+%triggerpostun base -- %{name}-base < 2.4.12-3.28
# skip *this* trigger on downgrade
if [ $1 -le 1 ]; then
exit 0
@@ -2977,6 +2977,9 @@ fi
od=%{_sysconfdir}/conf.d
nd=%{_sysconfdir}/conf.modules.d
for of in $od/??_*.conf.rpmsave; do
+ # skip if glob did not expand
+ test -f "$of" || continue
+
# first check matching conf.d file
bn=${of##*/??_}
bn=${bn%.rpmsave}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/apache.git/commitdiff/5052fcb6cfeb3814d6d64948461e5b8a21df5524
More information about the pld-cvs-commit
mailing list