diff options
-rw-r--r-- | perl-install/printer/main.pm | 20 |
1 files changed, 11 insertions, 9 deletions
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}, |