summaryrefslogtreecommitdiffstats
path: root/perl-install/modules.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-09-19 22:50:49 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-09-19 22:50:49 +0000
commita117445ee6c9611403e523fa212399101e93fc16 (patch)
tree2ecc97dde024fdfc499448e6ac76ee37aa1ae115 /perl-install/modules.pm
parenta1b2c33c15ab52218a15839f21f4da1af6a68a07 (diff)
downloaddrakx-a117445ee6c9611403e523fa212399101e93fc16.tar
drakx-a117445ee6c9611403e523fa212399101e93fc16.tar.gz
drakx-a117445ee6c9611403e523fa212399101e93fc16.tar.bz2
drakx-a117445ee6c9611403e523fa212399101e93fc16.tar.xz
drakx-a117445ee6c9611403e523fa212399101e93fc16.zip
no_comment
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r--perl-install/modules.pm9
1 files changed, 6 insertions, 3 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm
index 9a591cbf7..0cb526b7e 100644
--- a/perl-install/modules.pm
+++ b/perl-install/modules.pm
@@ -636,9 +636,12 @@ sub get_pcmcia_devices {
my (@devs, $desc);
foreach (cat_("/var/run/stab")) {
- $desc = $1 if /^Socket\s+\d+:\s+(.*)/;
- my (undef, $type, $module, undef, $device) = split;
- push @devs, { description => $desc, driver => $module, type => $type, device => $device } if $module;
+ if (/^Socket\s+\d+:\s+(.*)/) {
+ $desc = $1;
+ } else {
+ my (undef, $type, $module, undef, $device) = split;
+ push @devs, { description => $desc, driver => $module, type => $type, device => $device };
+ }
}
@devs;
}