summaryrefslogtreecommitdiffstats
path: root/kernel/list_modules.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-12-19 13:22:03 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-12-19 13:22:03 +0000
commit6eb2abd201f1856896558e44459a8238bde8d20e (patch)
treee8a7d851db8bff156ce1767c38f70e5cf83c66f7 /kernel/list_modules.pm
parenta8ffbf6610d532bd31a011aa026c2230857dadba (diff)
downloaddrakx-6eb2abd201f1856896558e44459a8238bde8d20e.tar
drakx-6eb2abd201f1856896558e44459a8238bde8d20e.tar.gz
drakx-6eb2abd201f1856896558e44459a8238bde8d20e.tar.bz2
drakx-6eb2abd201f1856896558e44459a8238bde8d20e.tar.xz
drakx-6eb2abd201f1856896558e44459a8238bde8d20e.zip
(load_dependencies) handle kernel packages' modules.dep, not only DrakX' ones
(this is usefull for mkinitrd in perl)
Diffstat (limited to 'kernel/list_modules.pm')
-rw-r--r--kernel/list_modules.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/list_modules.pm b/kernel/list_modules.pm
index 5a0f08ca9..53a3f7851 100644
--- a/kernel/list_modules.pm
+++ b/kernel/list_modules.pm
@@ -266,6 +266,8 @@ sub load_dependencies {
my ($file) = @_;
%dependencies = map {
+ s![^ ]*/!!g;
+ s!\.ko!!g;
my ($f, $deps) = split ':';
$f => [ split ' ', $deps ];
} cat_($file);