rpms/system-config-printer/F-11 system-config-printer-asyncpk0-fallback.patch, NONE, 1.1 system-config-printer.spec, 1.338, 1.339
Tim Waugh
twaugh at fedoraproject.org
Fri Jan 22 11:17:27 UTC 2010
Author: twaugh
Update of /cvs/pkgs/rpms/system-config-printer/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv14190
Modified Files:
system-config-printer.spec
Added Files:
system-config-printer-asyncpk0-fallback.patch
Log Message:
* Fri Jan 22 2010 Tim Waugh <twaugh at redhat.com> - 1.1.16-11
- Mirror asyncpk1 fallback fix in asyncpk0 (bug #557695).
system-config-printer-asyncpk0-fallback.patch:
asyncpk0.py | 24 +++++++++++++++---------
1 file changed, 15 insertions(+), 9 deletions(-)
--- NEW FILE system-config-printer-asyncpk0-fallback.patch ---
diff -up system-config-printer-1.1.16/asyncpk0.py.asyncpk0-fallback system-config-printer-1.1.16/asyncpk0.py
--- system-config-printer-1.1.16/asyncpk0.py.asyncpk0-fallback 2009-12-22 14:44:19.000000000 +0000
+++ system-config-printer-1.1.16/asyncpk0.py 2010-01-22 11:11:15.604057182 +0000
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-## Copyright (C) 2007, 2008, 2009 Red Hat, Inc.
+## Copyright (C) 2007, 2008, 2009, 2010 Red Hat, Inc.
## Copyright (C) 2008 Novell, Inc.
## Authors: Tim Waugh <twaugh at redhat.com>, Vincent Untz
@@ -122,18 +122,24 @@ class PK0Connection(asyncpk1.PK1Connecti
def _call_with_pk (self, use_pycups, pk_method_name, pk_args,
reply_handler, error_handler, unpack_fn,
fallback_fn, args, kwds):
- asyncmethodcall = _PK0AsyncMethodCall (self._system_bus, self,
- pk_method_name, pk_args,
- reply_handler, error_handler,
- unpack_fn, fallback_fn,
- args, kwds, self._parent)
+ if not use_pycups:
+ try:
+ asyncmethodcall = _PK0AsyncMethodCall (self._system_bus, self,
+ pk_method_name, pk_args,
+ reply_handler,
+ error_handler,
+ unpack_fn, fallback_fn,
+ args, kwds,
+ self._parent)
+ 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 ()
-
if __name__ == '__main__':
import gobject
import gtk
Index: system-config-printer.spec
===================================================================
RCS file: /cvs/pkgs/rpms/system-config-printer/F-11/system-config-printer.spec,v
retrieving revision 1.338
retrieving revision 1.339
diff -u -p -r1.338 -r1.339
--- system-config-printer.spec 19 Jan 2010 12:57:51 -0000 1.338
+++ system-config-printer.spec 22 Jan 2010 11:17:27 -0000 1.339
@@ -7,7 +7,7 @@
Summary: A printer administration tool
Name: system-config-printer
Version: 1.1.16
-Release: 10%{?dist}
+Release: 11%{?dist}
License: GPLv2+
URL: http://cyberelk.net/tim/software/system-config-printer/
Group: System Environment/Base
@@ -30,6 +30,7 @@ Patch12: system-config-printer-async-fal
Patch13: system-config-printer-userdefault-traceback.patch
Patch14: system-config-printer-serial-widgets.patch
Patch15: system-config-printer-statereason-tmp.patch
+Patch16: system-config-printer-asyncpk0-fallback.patch
BuildRequires: cups-devel >= 1.2
BuildRequires: python-devel >= 2.4
@@ -93,6 +94,7 @@ the configuration tool.
%patch13 -p1 -b .userdefault-traceback
%patch14 -p1 -b .serial-widgets
%patch15 -p1 -b .statereason-tmp
+%patch16 -p1 -b .asyncpk0-fallback
%build
%configure
@@ -199,6 +201,9 @@ rm -rf %buildroot
exit 0
%changelog
+* Fri Jan 22 2010 Tim Waugh <twaugh at redhat.com> - 1.1.16-11
+- Mirror asyncpk1 fallback fix in asyncpk0 (bug #557695).
+
* Tue Jan 19 2010 Tim Waugh <twaugh at redhat.com> - 1.1.16-10
- Update pycups to 1.9.48.
More information about the scm-commits
mailing list