summaryrefslogtreecommitdiffstats
path: root/kernel/list_modules.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-10-04 15:07:25 +0000
committerOlivier Blin <oblin@mandriva.com>2007-10-04 15:07:25 +0000
commitaa4ba035379e40d853bbd1e6ca67a7d212b4fbcd (patch)
tree1a4a33f24cee805b24f06b9128262cca352a44f7 /kernel/list_modules.pm
parent13196795a291f432a633db71b3dd042910c8b8a3 (diff)
downloaddrakx-aa4ba035379e40d853bbd1e6ca67a7d212b4fbcd.tar
drakx-aa4ba035379e40d853bbd1e6ca67a7d212b4fbcd.tar.gz
drakx-aa4ba035379e40d853bbd1e6ca67a7d212b4fbcd.tar.bz2
drakx-aa4ba035379e40d853bbd1e6ca67a7d212b4fbcd.tar.xz
drakx-aa4ba035379e40d853bbd1e6ca67a7d212b4fbcd.zip
do not vivify moddeps (fix installed modules detection, #34478)
Diffstat (limited to 'kernel/list_modules.pm')
-rw-r--r--kernel/list_modules.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/list_modules.pm b/kernel/list_modules.pm
index b5359c6f6..7a84cd7ad 100644
--- a/kernel/list_modules.pm
+++ b/kernel/list_modules.pm
@@ -303,7 +303,7 @@ sub load_dependencies {
}
sub dependencies_closure {
- my @l = map { dependencies_closure($_) } @{$moddeps{$_[0]}{deps} || []};
+ my @l = map { dependencies_closure($_) } @{exists $moddeps{$_[0]} && $moddeps{$_[0]}{deps} || []};
(@l, $_[0]);
}