Fixed textonly filter to work with single copies (bug #738412).

This commit is contained in:
Tim Waugh 2011-12-21 11:27:55 +00:00
parent 9bd0730a7e
commit 7870e7ad16
2 changed files with 5 additions and 2 deletions

View File

@ -13,7 +13,7 @@
Summary: Common Unix Printing System
Name: cups
Version: 1.4.8
Release: 6%{?dist}
Release: 7%{?dist}
License: GPLv2
Group: System Environment/Daemons
Source: http://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.bz2
@ -639,6 +639,9 @@ rm -rf $RPM_BUILD_ROOT
%{php_extdir}/phpcups.so
%changelog
* Wed Dec 21 2011 Tim Waugh <twaugh@redhat.com> 1:1.4.8-7
- Fixed textonly filter to work with single copies (bug #738412).
* Fri Dec 9 2011 Tim Waugh <twaugh@redhat.com> 1:1.4.8-6
- Detangle cups-serverbin-compat.patch from cups-lspp.patch.

View File

@ -31,7 +31,7 @@ if [ $# -ge 4 ]; then
COPIES="$4"
fi
if [ "$COPIES" -gt 1 ] && [ $# -lt 6 ]; then
if [ $# -lt 6 ]; then
unset TMPFILE
trap -- 'rm -f "$TMPFILE"' EXIT
TMPFILE=$(mktemp ${TMPDIR:-/tmp}/textonly.XXXXXX)