summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-04-30 10:09:27 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-04-30 10:09:27 +0000
commita419039b11d02b7ef2b7f894b199b245a7876303 (patch)
tree80c4d24a153aff1c05609b529d086457fe557c49 /perl-install/detect_devices.pm
parentc591bd073fb71703d6eb804429ed5b7e53bc538f (diff)
downloaddrakx-backup-do-not-use-a419039b11d02b7ef2b7f894b199b245a7876303.tar
drakx-backup-do-not-use-a419039b11d02b7ef2b7f894b199b245a7876303.tar.gz
drakx-backup-do-not-use-a419039b11d02b7ef2b7f894b199b245a7876303.tar.bz2
drakx-backup-do-not-use-a419039b11d02b7ef2b7f894b199b245a7876303.tar.xz
drakx-backup-do-not-use-a419039b11d02b7ef2b7f894b199b245a7876303.zip
perl_checker compliance
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index dde0ce63f..57dd842f1 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -368,8 +368,7 @@ sub getCPUs() {
push @cpus, $cpu if $cpu;
$cpu = {};
}
- /^([^\t]*).*:\s(.*)$/;
- $cpu->{$1} = $2 if $1;
+ $cpu->{$1} = $2 if /^([^\t]+).*:\s(.*)$/;
}
push @cpus, $cpu;
@cpus;