Configuring printer during installation (DrakX v1.510, Mandrake 8.0 plus
current updates, ran gendistrib). Printer name does not accept the "|"
character which is used to specify multiple names for the same printer
(according to the help text displayed with the dialog during
installation).
Suggested patch (not tested):
--- printerdrake.pm Wed Apr 18 09:19:14 2001
+++ printerdrake.pm.new Mon May 28 01:35:10 2001
@@ -450,8 +450,8 @@
{ title => _("Select Printer Connection"),
cancel => !$::expert ||
!$printer->{configured}{$printer->{QUEUE}} ? '' : _("Remove queue"),
callbacks => { complete => sub {
- unless ($printer->{QUEUE} =~ /^\w*$/) {
- $in->ask_warn('', _("Name of printer
should contains only letters, numbers and the underscore"));
+ unless ($printer->{QUEUE} =~
+/^\w+[\w\|]*\w+$/) {
+ $in->ask_warn('', _("Names of printer
+should contains only letters, numbers and the underscore and should be separated by
+|"));
return (1,0);
}
return 0;
Michael