summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-08-21 12:21:59 +0000
committerOlivier Blin <oblin@mandriva.com>2007-08-21 12:21:59 +0000
commite865a2cfa0f16a87eb055c7ea683a04b9624cf9f (patch)
tree3d479ed9cc0f3b050da3ac70e303ab1834348d7f /kernel
parent49125ea6b019bdb7364fc28a540e22c2ddacc91c (diff)
downloaddrakx-e865a2cfa0f16a87eb055c7ea683a04b9624cf9f.tar
drakx-e865a2cfa0f16a87eb055c7ea683a04b9624cf9f.tar.gz
drakx-e865a2cfa0f16a87eb055c7ea683a04b9624cf9f.tar.bz2
drakx-e865a2cfa0f16a87eb055c7ea683a04b9624cf9f.tar.xz
drakx-e865a2cfa0f16a87eb055c7ea683a04b9624cf9f.zip
use modname notation for dependencies
Diffstat (limited to 'kernel')
-rw-r--r--kernel/list_modules.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/list_modules.pm b/kernel/list_modules.pm
index 70fa2cdfe..6e41aaa76 100644
--- a/kernel/list_modules.pm
+++ b/kernel/list_modules.pm
@@ -289,8 +289,9 @@ sub load_dependencies {
s![^ ]*/!!g;
s!\.ko!!g;
s!\.gz!!g;
- my ($f, $deps) = split ':';
- $f => [ split ' ', $deps ];
+ my ($filename, $d) = split ':';
+ my ($modname, @deps) = map { filename2modname($_) } $filename, split(' ', $d);
+ $dependencies{$modname} = \@deps;
} cat_($file);
}