From 994bebb1a6c6efbf24786040db65427ee5b39c72 Mon Sep 17 00:00:00 2001 From: Till Kamppeter Date: Wed, 29 Jan 2003 03:01:53 +0000 Subject: - Automatic non-interactive installation of local print queues. - Standard and advanced options selected by option groups in PPD. - Fixed bug of "CUPS + GIMP-Print" drivers being preferred against "Foomatic + gimp-print" drivers in beginners mode. - Foomatic package installation adapted to Foomatic 2.9.x. --- perl-install/printer/main.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'perl-install/printer/main.pm') diff --git a/perl-install/printer/main.pm b/perl-install/printer/main.pm index 1a047ad1a..9c51cbbb3 100644 --- a/perl-install/printer/main.pm +++ b/perl-install/printer/main.pm @@ -1554,13 +1554,11 @@ sub poll_ppd_base { if (!$::expert) { # Remove driver from printer list entry when in # recommended mode - my $simplekey = $key; - $simplekey =~ s/^([^\|]+\|[^\|]+)\|.*$/$1/; + $key =~ s/^([^\|]+\|[^\|]+)\|.*$/$1/; # Only replace the printer entry when it uses a # "Foomatic + Postscript" driver next if (defined($thedb{$key}) && ($thedb{$key}{driver} !~ /PostScript/i)); - $key = $simplekey; # Remove the old entry delete $thedb{$key}; } elsif (defined -- cgit v1.2.1