!2 modify print err info when install

Merge pull request !2 from 通行百万/local
This commit is contained in:
openeuler-ci-bot 2020-01-21 11:57:16 +08:00 committed by Gitee
commit 48c0322d97

View File

@ -2,7 +2,7 @@
Summary: OpenPrinting CUPS filters, backends, and cups-browsed
Name: cups-filters
Version: 1.26.1
Release: 1
Release: 2
License: GPLv2 and GPLv2+ and GPLv3 and GPLv3+ and LGPLv2+ and MIT and BSD with advertising
Url: http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters
Source0: http://www.openprinting.org/download/cups-filters/cups-filters-%{version}.tar.xz
@ -83,7 +83,7 @@ if [ $1 -eq 1 ] ; then
OUT=%{_sysconfdir}/cups/cups-browsed.conf
keyword=BrowsePoll
if [ -f "$OUT" ]; then
echo -e "\n
echo -e "\n# NOTE: This file is not part of CUPS.\n# You need to enable cups-browsed service\n# and allow ipp-client service in firewall." >> "$OUT"
fi
if [ -f "$IN" ] && grep -iq ^$keyword "$IN"; then
@ -93,7 +93,7 @@ EOF
) || :
(grep -i ^$keyword "$IN" >> "$OUT") || :
fi
sed -i -e "s,^$keyword,
sed -i -e "s,^$keyword,#$keyword directive moved to cups-browsed.conf\n#$keyword,i" "$IN" || :
fi
fi
@ -158,6 +158,12 @@ fi
%{_mandir}/man8/cups-browsed.8.gz
%changelog
* Tue Jan 21 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.26.1-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: modify print err info when install
* Tue Nov 12 2019 caomeng<caomeng5@huawei.com> - 1.26.1-1
- Update version to 1.26.1