[subversion/f19] - silence cat errors

jorton jorton at fedoraproject.org
Tue Sep 3 07:45:06 UTC 2013


commit 97ebfeb03e8542f003d073a6ef4eea7cae796f9b
Author: Joe Orton <jorton at redhat.com>
Date:   Tue Sep 3 09:38:34 2013 +0200

    - silence cat errors

 subversion.spec |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/subversion.spec b/subversion.spec
index 87cab47..afaf535 100644
--- a/subversion.spec
+++ b/subversion.spec
@@ -18,7 +18,7 @@
 %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 
 %{!?_httpd_apxs: %{expand: %%global _httpd_apxs %%{_sbindir}/apxs}}
-%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)}}
+%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn 2>/dev/null || echo missing-httpd-devel)}}
 %{!?_httpd_confdir:    %{expand: %%global _httpd_confdir    %%{_sysconfdir}/httpd/conf.d}}
 # /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
 %{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}


More information about the scm-commits mailing list