From 0c8da3c3d7ab1240b6db4838ea0c380c0b270885 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Thu, 21 Jan 2010 14:47:04 +0000 Subject: [PATCH] - Fixed traceback when renaming a printer. --- system-config-printer-copy-printer.patch | 12 ++++++++++++ system-config-printer.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 system-config-printer-copy-printer.patch diff --git a/system-config-printer-copy-printer.patch b/system-config-printer-copy-printer.patch new file mode 100644 index 0000000..36a96b8 --- /dev/null +++ b/system-config-printer-copy-printer.patch @@ -0,0 +1,12 @@ +diff -up system-config-printer-1.1.90/system-config-printer.py.copy-printer system-config-printer-1.1.90/system-config-printer.py +--- system-config-printer-1.1.90/system-config-printer.py.copy-printer 2010-01-19 13:06:19.000000000 +0000 ++++ system-config-printer-1.1.90/system-config-printer.py 2010-01-21 14:45:33.668150157 +0000 +@@ -3058,7 +3058,7 @@ class GUI(GtkGUI, monitor.Watcher): + self.cups._end_operation () + return + +- if self.copy_printer (new_name): ++ if self.duplicate_printer (new_name): + # Failure. + self.monitor.update () + diff --git a/system-config-printer.spec b/system-config-printer.spec index 795b7ca..346771d 100644 --- a/system-config-printer.spec +++ b/system-config-printer.spec @@ -7,7 +7,7 @@ Summary: A printer administration tool Name: system-config-printer Version: 1.1.90 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ URL: http://cyberelk.net/tim/software/system-config-printer/ Group: System Environment/Base @@ -16,6 +16,7 @@ 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-no-epydoc.patch +Patch2: system-config-printer-copy-printer.patch BuildRequires: cups-devel >= 1.2 BuildRequires: python-devel >= 2.4 @@ -76,6 +77,7 @@ printers. %prep %setup -q -a 1 -a 2 %patch1 -p1 -b .no-epydoc +%patch2 -p1 -b .copy-printer %build %configure --with-udev-rules --with-polkit-1 @@ -191,6 +193,9 @@ rm -rf %buildroot exit 0 %changelog +* Thu Jan 21 2010 Tim Waugh - 1.1.90-2 +- Fixed traceback when renaming a printer. + * Tue Jan 19 2010 Tim Waugh - 1.1.90-1 - 1.1.90 development release.