- Fixed traceback when renaming a printer.

This commit is contained in:
Tim Waugh 2010-01-21 14:47:04 +00:00
parent dab45d8ae2
commit 0c8da3c3d7
2 changed files with 18 additions and 1 deletions

View File

@ -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 ()

View File

@ -7,7 +7,7 @@
Summary: A printer administration tool Summary: A printer administration tool
Name: system-config-printer Name: system-config-printer
Version: 1.1.90 Version: 1.1.90
Release: 1%{?dist} Release: 2%{?dist}
License: GPLv2+ License: GPLv2+
URL: http://cyberelk.net/tim/software/system-config-printer/ URL: http://cyberelk.net/tim/software/system-config-printer/
Group: System Environment/Base 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 Source2: http://cyberelk.net/tim/data/pysmbc/pysmbc-%{pysmbc_version}.tar.bz2
Patch1: system-config-printer-no-epydoc.patch Patch1: system-config-printer-no-epydoc.patch
Patch2: system-config-printer-copy-printer.patch
BuildRequires: cups-devel >= 1.2 BuildRequires: cups-devel >= 1.2
BuildRequires: python-devel >= 2.4 BuildRequires: python-devel >= 2.4
@ -76,6 +77,7 @@ printers.
%prep %prep
%setup -q -a 1 -a 2 %setup -q -a 1 -a 2
%patch1 -p1 -b .no-epydoc %patch1 -p1 -b .no-epydoc
%patch2 -p1 -b .copy-printer
%build %build
%configure --with-udev-rules --with-polkit-1 %configure --with-udev-rules --with-polkit-1
@ -191,6 +193,9 @@ rm -rf %buildroot
exit 0 exit 0
%changelog %changelog
* Thu Jan 21 2010 Tim Waugh <twaugh@redhat.com> - 1.1.90-2
- Fixed traceback when renaming a printer.
* Tue Jan 19 2010 Tim Waugh <twaugh@redhat.com> - 1.1.90-1 * Tue Jan 19 2010 Tim Waugh <twaugh@redhat.com> - 1.1.90-1
- 1.1.90 development release. - 1.1.90 development release.