summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-03-13 12:58:29 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-03-13 12:58:29 +0000
commit28c5fbc0567b633bdc24dcad32fabfe414791f0f (patch)
tree44111b9834369bb0acb678a7810f857c9a5e0dc0 /perl-install
parentedf44a63ccf255bb7cb50f17b69a6e32f08c1339 (diff)
downloaddrakx-28c5fbc0567b633bdc24dcad32fabfe414791f0f.tar
drakx-28c5fbc0567b633bdc24dcad32fabfe414791f0f.tar.gz
drakx-28c5fbc0567b633bdc24dcad32fabfe414791f0f.tar.bz2
drakx-28c5fbc0567b633bdc24dcad32fabfe414791f0f.tar.xz
drakx-28c5fbc0567b633bdc24dcad32fabfe414791f0f.zip
(burners): don't use cdroms() which return scdX for ide burners, and
isBurner don't use the same technique. so use get() and grep for type "cdrom"
Diffstat (limited to 'perl-install')
-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 e0e95f465..81c488a9c 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -51,7 +51,7 @@ sub cdroms() {
}
@l;
}
-sub burners { grep { isBurner($_->{device}) } cdroms() }
+sub burners { grep { $_->{type} eq 'cdrom' && isBurner($_->{device}) } get() }
sub IDEburners { grep { $_->{type} eq 'cdrom' && isBurner($_->{device}) } getIDE() }
sub get_mac_model() {