summaryrefslogtreecommitdiffstats
path: root/perl-install/printerdrake.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2000-09-14 17:11:39 +0000
committerFrancois Pons <fpons@mandriva.com>2000-09-14 17:11:39 +0000
commit91aa12902af49cbb6a5519ca713eb56baaaf4aa6 (patch)
treef0f73bb5b838f67f51ac21c8533f1b5933cb8fa2 /perl-install/printerdrake.pm
parentad877b438532cdcf61eae13d5b93b3fc1836c45a (diff)
downloaddrakx-91aa12902af49cbb6a5519ca713eb56baaaf4aa6.tar
drakx-91aa12902af49cbb6a5519ca713eb56baaaf4aa6.tar.gz
drakx-91aa12902af49cbb6a5519ca713eb56baaaf4aa6.tar.bz2
drakx-91aa12902af49cbb6a5519ca713eb56baaaf4aa6.tar.xz
drakx-91aa12902af49cbb6a5519ca713eb56baaaf4aa6.zip
*** empty log message ***
Diffstat (limited to 'perl-install/printerdrake.pm')
-rw-r--r--perl-install/printerdrake.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/printerdrake.pm b/perl-install/printerdrake.pm
index 40fb9025f..50cd6171c 100644
--- a/perl-install/printerdrake.pm
+++ b/perl-install/printerdrake.pm
@@ -43,11 +43,13 @@ sub setup_local($$$) {
}
$printer->{DEVICE} = $port[0] if $port[0];
- $in and return if !$in->ask_from_entries_refH(_("Local Printer Device"),
+ if ($in) {
+ return if !$in->ask_from_entries_refH(_("Local Printer Device"),
_("What device is your printer connected to
(note that /dev/lp0 is equivalent to LPT1:)?\n") . (join "\n", @str), [
_("Printer Device") => {val => \$printer->{DEVICE}, list => \@port } ],
- );
+ );
+ }
#- make the DeviceURI from DEVICE.
$printer->{DeviceURI} = ($printer->{DEVICE} =~ /usb/ ? "usb:" : "parallel:") . $printer->{DEVICE};