- Fixed traceback when copying printer with certain job options set (bug
#554268).
This commit is contained in:
parent
c29d3917a1
commit
1865641a39
50
system-config-printer-copy-crash.patch
Normal file
50
system-config-printer-copy-crash.patch
Normal file
@ -0,0 +1,50 @@
|
||||
diff -up system-config-printer-1.1.16/options.py.copy-crash system-config-printer-1.1.16/options.py
|
||||
--- system-config-printer-1.1.16/options.py.copy-crash 2009-12-22 14:44:19.000000000 +0000
|
||||
+++ system-config-printer-1.1.16/options.py 2010-01-11 16:05:04.352909594 +0000
|
||||
@@ -1,8 +1,9 @@
|
||||
## system-config-printer
|
||||
|
||||
-## Copyright (C) 2006, 2007, 2008 Red Hat, Inc.
|
||||
-## Copyright (C) 2008 Tim Waugh <twaugh@redhat.com>
|
||||
-## Copyright (C) 2006 Florian Festi <ffesti@redhat.com>
|
||||
+## Copyright (C) 2006, 2007, 2008, 2010 Red Hat, Inc.
|
||||
+## Authors:
|
||||
+## Tim Waugh <twaugh@redhat.com>
|
||||
+## Florian Festi <ffesti@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
|
||||
@@ -63,6 +64,9 @@ def OptionWidget(name, v, s, on_change):
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
class OptionInterface:
|
||||
+ def get_default(self):
|
||||
+ return None
|
||||
+
|
||||
def get_current_value(self):
|
||||
raise NotImplemented
|
||||
|
||||
@@ -105,6 +109,9 @@ class OptionAlwaysShown(OptionInterface)
|
||||
self.use_supported = use_supported
|
||||
self.reinit (None)
|
||||
|
||||
+ def get_default(self):
|
||||
+ return self.system_default
|
||||
+
|
||||
def set_default(self, system_default):
|
||||
# For the media option, the system default depends on the printer's
|
||||
# PageSize setting. This method allows the main module to tell us
|
||||
diff -up system-config-printer-1.1.16/system-config-printer.py.copy-crash system-config-printer-1.1.16/system-config-printer.py
|
||||
--- system-config-printer-1.1.16/system-config-printer.py.copy-crash 2010-01-11 16:05:04.342910797 +0000
|
||||
+++ system-config-printer-1.1.16/system-config-printer.py 2010-01-11 16:05:22.957910696 +0000
|
||||
@@ -2069,8 +2069,8 @@ class GUI(GtkGUI, monitor.Watcher):
|
||||
printer.unsetOption(option)
|
||||
for option in self.server_side_options.itervalues():
|
||||
if (option.is_changed() or
|
||||
- saveall and
|
||||
- option.get_current_value () != option.system_default):
|
||||
+ (saveall and
|
||||
+ option.get_current_value () != option.get_default())):
|
||||
printer.setOption(option.name, option.get_current_value())
|
||||
|
||||
except cups.IPPError, (e, s):
|
@ -7,7 +7,7 @@
|
||||
Summary: A printer administration tool
|
||||
Name: system-config-printer
|
||||
Version: 1.1.16
|
||||
Release: 7%{?dist}
|
||||
Release: 8%{?dist}
|
||||
License: GPLv2+
|
||||
URL: http://cyberelk.net/tim/software/system-config-printer/
|
||||
Group: System Environment/Base
|
||||
@ -25,6 +25,7 @@ Patch7: system-config-printer-notification-timeouts.patch
|
||||
Patch8: system-config-printer-select-nonexistent-printer.patch
|
||||
Patch9: system-config-printer-ink-levels.patch
|
||||
Patch10: system-config-printer-auth-no-pw.patch
|
||||
Patch11: system-config-printer-copy-crash.patch
|
||||
|
||||
Patch101: pycups-request-readio.patch
|
||||
|
||||
@ -96,6 +97,7 @@ printers.
|
||||
%patch8 -p1 -b .select-nonexistent-printer
|
||||
%patch9 -p1 -b .ink-levels
|
||||
%patch10 -p1 -b .auth-no-pw
|
||||
%patch11 -p1 -b .copy-crash
|
||||
|
||||
pushd pycups-%{pycups_version}
|
||||
%patch101 -p1 -b .request-readio
|
||||
@ -216,6 +218,10 @@ rm -rf %buildroot
|
||||
exit 0
|
||||
|
||||
%changelog
|
||||
* Mon Jan 11 2010 Tim Waugh <twaugh@redhat.com> - 1.1.16-8
|
||||
- Fixed traceback when copying printer with certain job options
|
||||
set (bug #554268).
|
||||
|
||||
* Mon Jan 11 2010 Tim Waugh <twaugh@redhat.com> - 1.1.16-7
|
||||
- Fixed traceback introduced in recent fix (bug #554376).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user