summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-09-23 18:50:07 +0000
committerThierry Vignaud <tv@mandriva.org>2009-09-23 18:50:07 +0000
commitb838f9a6ddbff0d666a02ce85bc03b003d4eedcc (patch)
treed41a9f550dcd50465daa60a4e5a130df46b2eb1a /perl-install
parent8534c15324a6ac23395caafcf23ec96ab34931a9 (diff)
downloaddrakx-b838f9a6ddbff0d666a02ce85bc03b003d4eedcc.tar
drakx-b838f9a6ddbff0d666a02ce85bc03b003d4eedcc.tar.gz
drakx-b838f9a6ddbff0d666a02ce85bc03b003d4eedcc.tar.bz2
drakx-b838f9a6ddbff0d666a02ce85bc03b003d4eedcc.tar.xz
drakx-b838f9a6ddbff0d666a02ce85bc03b003d4eedcc.zip
perl_checker cleanups
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/detect_devices.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 93d0395e6..672445fff 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -371,7 +371,7 @@ sub getATARAID() {
sub getVirtIO() {
-d '/sys/bus/virtio/devices' or return;
map {
- { device => basename($_), info => "VirtIO block device", media_type => 'hd', bus => 'virtio' }
+ { device => basename($_), info => "VirtIO block device", media_type => 'hd', bus => 'virtio' };
}
glob("/sys/bus/virtio/devices/*/block/*");
}
@@ -1021,7 +1021,7 @@ sub dmidecode() {
my ($major, $minor) = $ver =~ /(\d+)\.(\d+)/;
- if ($major > 2 || $major == 2 && $minor >7) {
+ if ($major > 2 || $major == 2 && $minor > 7) {
#- new dmidecode output is less indented
$tab = '';
#- drop header
@@ -1151,7 +1151,7 @@ sub matching_types() {
}
sub hasWacom() { find { $_->{vendor} == 0x056a || $_->{driver} =~ /wacom/ } usb_probe() }
-sub hasTouchpad() { any { $_->{Synaptics} || $_->{ALPS} || $_->{Elantech} } getInputDevices() };
+sub hasTouchpad() { any { $_->{Synaptics} || $_->{ALPS} || $_->{Elantech} } getInputDevices() }
sub usbWacom() { grep { $_->{vendor} eq '056a' } getInputDevices() }
sub usbKeyboards() { grep { $_->{media_type} =~ /\|Keyboard/ } usb_probe() }
@@ -1216,7 +1216,7 @@ sub hasMousePS2 {
my $t; sysread(tryOpen($_[0]) || return, $t, 256) != 1 || $t ne "\xFE";
}
-sub probeall_unavailable_modules {
+sub probeall_unavailable_modules() {
map {
my $driver = $_->{driver};
$driver !~ /:/ &&
@@ -1227,7 +1227,7 @@ sub probeall_unavailable_modules {
} probeall();
}
-sub probeall_dkms_modules {
+sub probeall_dkms_modules() {
my @unavailable_modules = probeall_unavailable_modules() or return;
require modalias;
my $dkms_modules = modalias::parse_file_modules($::prefix . "/usr/share/ldetect-lst/dkms-modules.alias");