rpms/system-config-printer/devel system-config-printer-forbidden.patch, 1.2, 1.3 system-config-printer.spec, 1.215, 1.216

Tim Waugh twaugh at fedoraproject.org
Sat Aug 30 09:43:27 UTC 2008


Author: twaugh

Update of /cvs/pkgs/rpms/system-config-printer/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25130

Modified Files:
	system-config-printer.spec 
Added Files:
	system-config-printer-forbidden.patch 
Log Message:
* Sat Aug 30 2008 Tim Waugh <twaugh at redhat.com> 1.0.7-2
- Handle IPP_FORBIDDEN (bug #460670).


system-config-printer-forbidden.patch:

Index: system-config-printer-forbidden.patch
===================================================================
RCS file: system-config-printer-forbidden.patch
diff -N system-config-printer-forbidden.patch
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ system-config-printer-forbidden.patch	30 Aug 2008 09:43:26 -0000	1.3
@@ -0,0 +1,22 @@
+diff -up system-config-printer-1.0.7/authconn.py.forbidden system-config-printer-1.0.7/authconn.py
+--- system-config-printer-1.0.7/authconn.py.forbidden	2008-08-29 11:32:49.000000000 +0100
++++ system-config-printer-1.0.7/authconn.py	2008-08-30 10:42:09.000000000 +0100
+@@ -164,7 +164,8 @@ class Connection:
+                         raise cups.IPPError (cups.IPP_NOT_AUTHORIZED, '')
+                 break
+             except cups.IPPError, (e, m):
+-                if not self._cancel and e == cups.IPP_NOT_AUTHORIZED:
++                if not self._cancel and (e == cups.IPP_NOT_AUTHORIZED or
++                                         e == cups.IPP_FORBIDDEN):
+                     self._failed ()
+                 else:
+                     raise
+diff -U0 system-config-printer-1.0.7/ChangeLog.forbidden system-config-printer-1.0.7/ChangeLog
+--- system-config-printer-1.0.7/ChangeLog.forbidden	2008-08-29 11:32:49.000000000 +0100
++++ system-config-printer-1.0.7/ChangeLog	2008-08-30 10:42:09.000000000 +0100
+@@ -0,0 +1,5 @@
++2008-08-30  Tim Waugh  <twaugh at redhat.com>
++
++	* authconn.py (Connection._authloop): Handle IPP_FORBIDDEN (bug
++	#460670).
++


Index: system-config-printer.spec
===================================================================
RCS file: /cvs/pkgs/rpms/system-config-printer/devel/system-config-printer.spec,v
retrieving revision 1.215
retrieving revision 1.216
diff -u -r1.215 -r1.216
--- system-config-printer.spec	29 Aug 2008 10:41:42 -0000	1.215
+++ system-config-printer.spec	30 Aug 2008 09:43:26 -0000	1.216
@@ -7,7 +7,7 @@
 Summary: A printer administration tool
 Name: system-config-printer
 Version: 1.0.7
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPLv2+
 URL: http://cyberelk.net/tim/software/system-config-printer/
 Group: System Environment/Base
@@ -15,6 +15,8 @@
 Source1: http://cyberelk.net/tim/data/pycups/pycups-%{pycups_version}.tar.bz2
 Source2: http://cyberelk.net/tim/data/pysmbc/pysmbc-%{pysmbc_version}.tar.bz2
 
+Patch1: system-config-printer-forbidden.patch
+
 BuildRequires: cups-devel >= 1.2
 BuildRequires: python-devel >= 2.4
 BuildRequires: libsmbclient-devel >= 3.2
@@ -60,6 +62,7 @@
 
 %prep
 %setup -q -a 1 -a 2
+%patch1 -p1 -b .forbidden
 
 %build
 %configure
@@ -149,6 +152,9 @@
 exit 0
 
 %changelog
+* Sat Aug 30 2008 Tim Waugh <twaugh at redhat.com> 1.0.7-2
+- Handle IPP_FORBIDDEN (bug #460670).
+
 * Fri Aug 29 2008 Tim Waugh <twaugh at redhat.com> 1.0.7-1
 - 1.0.7:
   - Efficiency improvements.




More information about the fedora-extras-commits mailing list