summaryrefslogtreecommitdiffstats
path: root/kernel/list_modules.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-09-22 09:54:25 +0000
committerOlivier Blin <oblin@mandriva.com>2007-09-22 09:54:25 +0000
commit1d34683bd9967baaf21bed862578cc05bc02b346 (patch)
tree8a7c6116258a72ddeb96247a25c0fbb58fdacf24 /kernel/list_modules.pm
parenta9cfd7b60bf2115062f0b600b10ce704a848692b (diff)
downloaddrakx-1d34683bd9967baaf21bed862578cc05bc02b346.tar
drakx-1d34683bd9967baaf21bed862578cc05bc02b346.tar.gz
drakx-1d34683bd9967baaf21bed862578cc05bc02b346.tar.bz2
drakx-1d34683bd9967baaf21bed862578cc05bc02b346.tar.xz
drakx-1d34683bd9967baaf21bed862578cc05bc02b346.zip
make modname2filename load module deps if needed (dependencies_closure will thus return results in standalone mode, but it shouldn't matter)
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 07d7e972e..e0fc3bce4 100644
--- a/kernel/list_modules.pm
+++ b/kernel/list_modules.pm
@@ -311,6 +311,8 @@ sub filename2modname {
}
sub modname2filename {
+ load_dependencies($::prefix . '/lib/modules/' . c::kernel_version() . '/modules.dep')
+ if !%filenames;
$filenames{$_[0]};
}