rpms/system-config-printer/devel system-config-printer-async-fallback.patch, NONE, 1.1 clog1, 1.1, 1.2 system-config-printer.spec, 1.342, 1.343

Tim Waugh twaugh at fedoraproject.org
Mon Jan 18 16:59:32 UTC 2010


Author: twaugh

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

Modified Files:
	clog1 system-config-printer.spec 
Added Files:
	system-config-printer-async-fallback.patch 
Log Message:
* Mon Jan 18 2010 Tim Waugh <twaugh at redhat.com> - 1.1.16-9
- Don't rely on cups-pk-helper being around (bug #556170).


system-config-printer-async-fallback.patch:
 asyncpk1.py |   22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

--- NEW FILE system-config-printer-async-fallback.patch ---
diff -up system-config-printer-1.1.16/asyncpk1.py.async-fallback system-config-printer-1.1.16/asyncpk1.py
--- system-config-printer-1.1.16/asyncpk1.py.async-fallback	2009-12-22 14:27:37.000000000 +0000
+++ system-config-printer-1.1.16/asyncpk1.py	2010-01-18 16:53:36.820434799 +0000
@@ -288,18 +288,24 @@ class PK1Connection:
     def _call_with_pk (self, use_pycups, pk_method_name, pk_args,
                        reply_handler, error_handler, unpack_fn,
                        fallback_fn, args, kwds):
-        asyncmethodcall = _PK1AsyncMethodCall (self._system_bus, self,
-                                               pk_method_name, pk_args,
-                                               reply_handler, error_handler,
-                                               unpack_fn, fallback_fn,
-                                               args, kwds)
+        if not use_pycups:
+            try:
+                asyncmethodcall = _PK1AsyncMethodCall (self._system_bus, self,
+                                                       pk_method_name, pk_args,
+                                                       reply_handler,
+                                                       error_handler,
+                                                       unpack_fn, fallback_fn,
+                                                       args, kwds)
+
+                debugprint ("Calling PK method %s" % pk_method_name)
+                asyncmethodcall.call ()
+            except dbus.DBusException, e:
+                debugprint ("D-Bus call failed: %s" % repr (e))
+                use_pycups = True
 
         if use_pycups:
             return asyncmethodcall.call_fallback_fn ()
 
-        debugprint ("Calling PK method %s" % pk_method_name)
-        asyncmethodcall.call ()
-
     def _nothing_to_unpack (self):
         return None
 


Index: clog1
===================================================================
RCS file: /cvs/pkgs/rpms/system-config-printer/devel/clog1,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- clog1	18 Jan 2010 16:39:07 -0000	1.1
+++ clog1	18 Jan 2010 16:59:32 -0000	1.2
@@ -1,2 +1,2 @@
-* Wed Jan  6 2010 Tim Waugh <twaugh at redhat.com> - 1.1.16-3
-- Fixed pycups IPPRequest attribute handling bug.
+* Mon Jan 18 2010 Tim Waugh <twaugh at redhat.com> - 1.1.16-9
+- Don't rely on cups-pk-helper being around (bug #556170).


Index: system-config-printer.spec
===================================================================
RCS file: /cvs/pkgs/rpms/system-config-printer/devel/system-config-printer.spec,v
retrieving revision 1.342
retrieving revision 1.343
diff -u -p -r1.342 -r1.343
--- system-config-printer.spec	18 Jan 2010 16:39:07 -0000	1.342
+++ system-config-printer.spec	18 Jan 2010 16:59:32 -0000	1.343
@@ -27,6 +27,7 @@ Patch9: system-config-printer-ink-levels
 Patch10: system-config-printer-auth-no-pw.patch
 Patch11: system-config-printer-copy-crash.patch
 Patch12: system-config-printer-check-still-connecting.patch
+Patch13: system-config-printer-async-fallback.patch
 
 Patch101: pycups-request-readio.patch
 
@@ -100,6 +101,7 @@ printers.
 %patch10 -p1 -b .auth-no-pw
 %patch11 -p1 -b .copy-crash
 %patch12 -p1 -b .check-still-connecting
+%patch13 -p1 -b .async-fallback
 
 pushd pycups-%{pycups_version}
 %patch101 -p1 -b .request-readio
@@ -221,6 +223,7 @@ exit 0
 
 %changelog
 * Mon Jan 18 2010 Tim Waugh <twaugh at redhat.com> - 1.1.16-9
+- Don't rely on cups-pk-helper being around (bug #556170).
 - Avoid traceback when checking on connecting backends (bug #555552).
 
 * Mon Jan 11 2010 Tim Waugh <twaugh at redhat.com> - 1.1.16-8



More information about the scm-commits mailing list