summaryrefslogtreecommitdiffstats
path: root/perl-install/printerdrake.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2000-01-12 05:57:32 +0000
committerFrancois Pons <fpons@mandriva.com>2000-01-12 05:57:32 +0000
commit0dc2fe26d5665567afc0e5f2187e7d6ae41ce0dd (patch)
tree48117c489d683302a17daa37bfc0661e68a660ea /perl-install/printerdrake.pm
parentefe4d482264afc4df49addf731316c1f4c93b6dc (diff)
downloaddrakx-0dc2fe26d5665567afc0e5f2187e7d6ae41ce0dd.tar
drakx-0dc2fe26d5665567afc0e5f2187e7d6ae41ce0dd.tar.gz
drakx-0dc2fe26d5665567afc0e5f2187e7d6ae41ce0dd.tar.bz2
drakx-0dc2fe26d5665567afc0e5f2187e7d6ae41ce0dd.tar.xz
drakx-0dc2fe26d5665567afc0e5f2187e7d6ae41ce0dd.zip
*** empty log message ***
Diffstat (limited to 'perl-install/printerdrake.pm')
-rw-r--r--perl-install/printerdrake.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/perl-install/printerdrake.pm b/perl-install/printerdrake.pm
index 19de5ba02..3b54ac994 100644
--- a/perl-install/printerdrake.pm
+++ b/perl-install/printerdrake.pm
@@ -197,11 +197,7 @@ wish to access and any applicable user name and password."),
my %depth_to_col = reverse %col_to_depth;
my $is_uniprint = $db_entry{GSDRIVER} eq "uniprint";
- if (@list_res) {
- $printer->{RESOLUTION} = $list_res[0];
- } else {
- $printer->{RESOLUTION} = "Default";
- }
+ $printer->{RESOLUTION} = @res ? $res[0] || "Default" : "Default";
$printer->{CRLF} = $db_entry{DESCR} =~ /HP/;
$printer->{BITSPERPIXEL} = @list_col ? $depth_to_col{$printer->{BITSPERPIXEL}} || $depth_to_col{$col[0]} : "Default";