From add0b1be43bf854aaddde0e0dca2223f51eb9bd0 Mon Sep 17 00:00:00 2001 From: Till Kamppeter Date: Fri, 20 Jan 2006 20:39:30 +0000 Subject: - Give priority to custom PPD file if printer queue record in printerdrake is broken, use "Postscript" if Foomatic driver is wrongly set to "PPD", should fix bug #20028. --- perl-install/printer/main.pm | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'perl-install/printer/main.pm') diff --git a/perl-install/printer/main.pm b/perl-install/printer/main.pm index 8abd74157..2a8757f82 100644 --- a/perl-install/printer/main.pm +++ b/perl-install/printer/main.pm @@ -2162,15 +2162,17 @@ sub configure_queue($) { $printer->{configured}{$printer->{OLD_QUEUE}} ? ("-C", $printer->{OLD_QUEUE}) : ()), "-c", $quotedconnect, - ($printer->{currentqueue}{foomatic} ? - ("-p", $printer->{currentqueue}{printer}, - "-d", $printer->{currentqueue}{driver}) : - ($printer->{currentqueue}{ppd} ? - ($printer->{currentqueue}{ppd} ne '1' ? - ("--ppd", - ($printer->{currentqueue}{ppd} !~ m!^/! ? - "/usr/share/cups/model/" : "") . - $printer->{currentqueue}{ppd}) : ()) : + ($printer->{currentqueue}{ppd} ? + ($printer->{currentqueue}{ppd} ne '1' ? + ("--ppd", + ($printer->{currentqueue}{ppd} !~ m!^/! ? + "/usr/share/cups/model/" : "") . + $printer->{currentqueue}{ppd}) : ()) : + ($printer->{currentqueue}{foomatic} ? + ("-p", $printer->{currentqueue}{printer}, + "-d",($printer->{currentqueue}{driver} ne "PPD" ? + $printer->{currentqueue}{driver} : + "Postscript")) : ("-d", "raw"))), "-N", $printer->{currentqueue}{desc}, "-L", $printer->{currentqueue}{loc}, -- cgit v1.2.1