summaryrefslogtreecommitdiffstats
path: root/perl-install/printer/main.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/printer/main.pm')
-rw-r--r--perl-install/printer/main.pm4
1 files changed, 1 insertions, 3 deletions
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