[cups-filters] check cupsd.conf existence prior to grepping it (#928816)
Jiří Popelka
jpopelka at fedoraproject.org
Thu Mar 28 15:36:18 UTC 2013
commit 285a0432ade19828dfdec9a47501e81b6ae2930b
Author: Jiri Popelka <jpopelka at redhat.com>
Date: Thu Mar 28 16:35:11 2013 +0100
check cupsd.conf existence prior to grepping it (#928816)
cups-filters.spec | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/cups-filters.spec b/cups-filters.spec
index 1b47ca2..14da21e 100644
--- a/cups-filters.spec
+++ b/cups-filters.spec
@@ -4,7 +4,7 @@
Summary: OpenPrinting CUPS filters and backends
Name: cups-filters
Version: 1.0.31
-Release: 1%{?dist}
+Release: 2%{?dist}
# For a breakdown of the licensing, see COPYING file
# GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*,
@@ -131,7 +131,7 @@ if [ $1 -eq 1 ] ; then
OUT=%{_sysconfdir}/cups/cups-browsed.conf
keyword=BrowsePoll
- if grep -iq ^$keyword "$IN"; then
+ if [ -f "$IN" ] && grep -iq ^$keyword "$IN"; then
if ! grep -iq ^$keyword "$OUT"; then
(cat >> "$OUT" <<EOF
@@ -188,6 +188,9 @@ fi
%{_libdir}/libfontembed.so
%changelog
+* Thu Mar 28 2013 Jiri Popelka <jpopelka at redhat.com> - 1.0.31-2
+- check cupsd.conf existence prior to grepping it (#928816)
+
* Fri Mar 22 2013 Jiri Popelka <jpopelka at redhat.com> - 1.0.31-1
- 1.0.31
More information about the scm-commits
mailing list