From 53ff0e046262c1a7ac19d9ae4a95a4898258b56f Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Tue, 18 Sep 2007 15:33:14 +0000 Subject: [PATCH] - Write printcap when a remote queue is deleted (bug #290831). --- cups-str2512-printcap.patch | 11 +++++++++++ cups.spec | 5 +++++ 2 files changed, 16 insertions(+) create mode 100644 cups-str2512-printcap.patch diff --git a/cups-str2512-printcap.patch b/cups-str2512-printcap.patch new file mode 100644 index 0000000..173e2a2 --- /dev/null +++ b/cups-str2512-printcap.patch @@ -0,0 +1,11 @@ +diff -up cups-1.3.1/scheduler/dirsvc.c.printcap cups-1.3.1/scheduler/dirsvc.c +--- cups-1.3.1/scheduler/dirsvc.c.printcap 2007-09-18 16:29:18.000000000 +0100 ++++ cups-1.3.1/scheduler/dirsvc.c 2007-09-18 16:29:19.000000000 +0100 +@@ -2134,6 +2134,7 @@ process_browse_data( + + cupsdDeletePrinter(p, 1); + cupsdUpdateImplicitClasses(); ++ write_printcap = 1; + } + else if (update) + { diff --git a/cups.spec b/cups.spec index 1b666ff..27b37c7 100644 --- a/cups.spec +++ b/cups.spec @@ -39,6 +39,7 @@ Patch13: cups-direct-usb.patch Patch14: cups-lpr-help.patch Patch15: cups-str2512.patch Patch16: cups-pid.patch +Patch17: cups-str2512-printcap.patch Patch19: cups-eggcups.patch Patch20: cups-getpass.patch Patch21: cups-driverd-timeout.patch @@ -149,6 +150,7 @@ lpd emulation. %patch14 -p1 -b .lpr-help %patch15 -p1 -b .str2512 %patch16 -p1 -b .pid +%patch17 -p1 -b .str2512-printcap %patch19 -p1 -b .eggcups %patch20 -p1 -b .getpass %patch21 -p1 -b .driverd-timeout @@ -441,6 +443,9 @@ rm -rf $RPM_BUILD_ROOT %{cups_serverbin}/daemon/cups-lpd %changelog +* Tue Sep 18 2007 Tim Waugh 1:1.3.1-3 +- Write printcap when a remote queue is deleted (bug #290831). + * Tue Sep 18 2007 Tim Waugh 1:1.3.1-2 - Avoid write printcap unnecessarily (bug #290831).