rpms/system-config-printer/devel system-config-printer-userdefault-traceback.patch, NONE, 1.1 clog1, 1.2, 1.3 system-config-printer.spec, 1.343, 1.344

Tim Waugh twaugh at fedoraproject.org
Mon Jan 18 17:03:23 UTC 2010


Author: twaugh

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

Modified Files:
	clog1 system-config-printer.spec 
Added Files:
	system-config-printer-userdefault-traceback.patch 
Log Message:
* Mon Jan 18 2010 Tim Waugh <twaugh at redhat.com> - 1.1.16-9
- Handle errors more gracefully in userdefault.py (bug #556345).


system-config-printer-userdefault-traceback.patch:
 userdefault.py |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

--- NEW FILE system-config-printer-userdefault-traceback.patch ---
diff -up system-config-printer-1.1.16/userdefault.py.userdefault-traceback system-config-printer-1.1.16/userdefault.py
--- system-config-printer-1.1.16/userdefault.py.userdefault-traceback	2009-09-01 12:08:33.000000000 +0100
+++ system-config-printer-1.1.16/userdefault.py	2010-01-18 16:58:17.502559206 +0000
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 
-## Copyright (C) 2006, 2007, 2008 Red Hat, Inc.
-## Copyright (C) 2007, 2008 Tim Waugh <twaugh at redhat.com>
+## Copyright (C) 2006, 2007, 2008, 2010 Red Hat, Inc.
+## Author: Tim Waugh <twaugh at redhat.com>
 
 ## This program is free software; you can redistribute it and/or modify
 ## it under the terms of the GNU General Public License as published by
@@ -161,7 +161,11 @@ class UserDefaultPrompt:
                 self.userdef.clear ()
             self.set_default_fn (self.name)
         else:
-            self.userdef.set (self.name)
+            try:
+                self.userdef.set (self.name)
+            except Exception, e:
+                print "Error setting default: %s" % repr (e)
+
             self.refresh_fn ()
 
         dialog.destroy ()


Index: clog1
===================================================================
RCS file: /cvs/pkgs/rpms/system-config-printer/devel/clog1,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- clog1	18 Jan 2010 16:59:32 -0000	1.2
+++ clog1	18 Jan 2010 17:03:23 -0000	1.3
@@ -1,2 +1,2 @@
 * 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).
+- Handle errors more gracefully in userdefault.py (bug #556345).


Index: system-config-printer.spec
===================================================================
RCS file: /cvs/pkgs/rpms/system-config-printer/devel/system-config-printer.spec,v
retrieving revision 1.343
retrieving revision 1.344
diff -u -p -r1.343 -r1.344
--- system-config-printer.spec	18 Jan 2010 16:59:32 -0000	1.343
+++ system-config-printer.spec	18 Jan 2010 17:03:23 -0000	1.344
@@ -28,6 +28,7 @@ Patch10: system-config-printer-auth-no-p
 Patch11: system-config-printer-copy-crash.patch
 Patch12: system-config-printer-check-still-connecting.patch
 Patch13: system-config-printer-async-fallback.patch
+Patch14: system-config-printer-userdefault-traceback.patch
 
 Patch101: pycups-request-readio.patch
 
@@ -102,6 +103,7 @@ printers.
 %patch11 -p1 -b .copy-crash
 %patch12 -p1 -b .check-still-connecting
 %patch13 -p1 -b .async-fallback
+%patch14 -p1 -b .userdefault-traceback
 
 pushd pycups-%{pycups_version}
 %patch101 -p1 -b .request-readio
@@ -223,6 +225,7 @@ exit 0
 
 %changelog
 * Mon Jan 18 2010 Tim Waugh <twaugh at redhat.com> - 1.1.16-9
+- Handle errors more gracefully in userdefault.py (bug #556345).
 - Don't rely on cups-pk-helper being around (bug #556170).
 - Avoid traceback when checking on connecting backends (bug #555552).
 



More information about the scm-commits mailing list