summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-11-20 14:58:56 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-11-20 14:58:56 +0000
commit172a413310c04d0013f91fd7478677ab206643de (patch)
tree0f56faef31b93057ba5558fc6f48c09b323e53d7
parente68dbd34e69109812b7e06040a37c49c7ba3819e (diff)
downloaddrakx-backup-do-not-use-172a413310c04d0013f91fd7478677ab206643de.tar
drakx-backup-do-not-use-172a413310c04d0013f91fd7478677ab206643de.tar.gz
drakx-backup-do-not-use-172a413310c04d0013f91fd7478677ab206643de.tar.bz2
drakx-backup-do-not-use-172a413310c04d0013f91fd7478677ab206643de.tar.xz
drakx-backup-do-not-use-172a413310c04d0013f91fd7478677ab206643de.zip
fix regexp for new ldetect usb class
-rw-r--r--perl-install/detect_devices.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 8b44a7708..3f75e2cd9 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -202,7 +202,7 @@ sub isDvdDrive {
sub isZipDrive { $_[0]{info} =~ /ZIP\s+\d+/ } #- accept ZIP 100, untested for bigger ZIP drive.
sub isJazzDrive { $_[0]{info} =~ /\bJAZZ?\b/i } #- accept "iomega jaz 1GB"
sub isLS120Drive { $_[0]{info} =~ /LS-?120|144MB/ }
-sub isRemovableUsb { $_[0]{usb_media_type} && index($_[0]{usb_media_type}, 'Mass Storage|') == 0 && usb2removable($_[0]) }
+sub isRemovableUsb { $_[0]{usb_media_type} && index($_[0]{usb_media_type}, 'Mass Storage') == 0 && usb2removable($_[0]) }
sub isFloppyUsb { $_[0]{usb_driver} && $_[0]{usb_driver} eq 'Removable:floppy' }
sub isRemovableDrive {
my ($e) = @_;