diff options
author | Till Kamppeter <tkamppeter@mandriva.com> | 2003-03-03 02:17:08 +0000 |
---|---|---|
committer | Till Kamppeter <tkamppeter@mandriva.com> | 2003-03-03 02:17:08 +0000 |
commit | ae55a399080beba98b5f9d4caa9c227ef9ce80d0 (patch) | |
tree | 5bfaa42c85697598b608bc4c38d49e1e52153ea1 /perl-install | |
parent | ed591ac89447bb3bb3e8075f6af8fffea89b14a9 (diff) | |
download | drakx-backup-do-not-use-ae55a399080beba98b5f9d4caa9c227ef9ce80d0.tar drakx-backup-do-not-use-ae55a399080beba98b5f9d4caa9c227ef9ce80d0.tar.gz drakx-backup-do-not-use-ae55a399080beba98b5f9d4caa9c227ef9ce80d0.tar.bz2 drakx-backup-do-not-use-ae55a399080beba98b5f9d4caa9c227ef9ce80d0.tar.xz drakx-backup-do-not-use-ae55a399080beba98b5f9d4caa9c227ef9ce80d0.zip |
Fixed bug of USB printers which do not report back an IEEE-1284 ID string after
three attempts being invisible instead of being listed as an "Unknown device".
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/printer/detect.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/printer/detect.pm b/perl-install/printer/detect.pm index 9e3104b01..72568ee47 100644 --- a/perl-install/printer/detect.pm +++ b/perl-install/printer/detect.pm @@ -134,7 +134,9 @@ sub whatUsbport() { $commandset ||= $1; $itemfound = 1; } - next if !$itemfound; + # Nothing found? Try again if not in the third attempt, + # in the third attempt always accept. + next if !$itemfound && ($j < 3); # Was there a manufacturer and a model in the string? if ($manufacturer eq "" || $model eq "") { $manufacturer = ""; |