diff options
author | Francois Pons <fpons@mandriva.com> | 2001-04-11 12:30:14 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2001-04-11 12:30:14 +0000 |
commit | 0bd61fb28d791c2ceb6b390b7f2f651274158bf6 (patch) | |
tree | eb2816b9cd82d1019e45d07031d0750e7e0217be | |
parent | f1938a800ccee64e384a663bea7840ca20203b76 (diff) | |
download | drakx-backup-do-not-use-0bd61fb28d791c2ceb6b390b7f2f651274158bf6.tar drakx-backup-do-not-use-0bd61fb28d791c2ceb6b390b7f2f651274158bf6.tar.gz drakx-backup-do-not-use-0bd61fb28d791c2ceb6b390b7f2f651274158bf6.tar.bz2 drakx-backup-do-not-use-0bd61fb28d791c2ceb6b390b7f2f651274158bf6.tar.xz drakx-backup-do-not-use-0bd61fb28d791c2ceb6b390b7f2f651274158bf6.zip |
make printer devices more accurate.
-rw-r--r-- | perl-install/printerdrake.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/printerdrake.pm b/perl-install/printerdrake.pm index 4fcbb2fac..7c2752e29 100644 --- a/perl-install/printerdrake.pm +++ b/perl-install/printerdrake.pm @@ -36,7 +36,11 @@ sub setup_local($$$) { $_->{val}{DESCRIPTION} and push @str, _("A printer, model \"%s\", has been detected on ", $_->{val}{DESCRIPTION}) . $_->{port}; } - @port = detect_devices::whatPrinterPort(); + if ($::expert || !@str) { + @port = detect_devices::whatPrinterPort(); + } else { + @port = map { $_->{port} } grep { $_->{val}{DESCRIPTION} } @parport; + } $printer->{DEVICE} = $port[0] if $port[0]; if ($in) { |