summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2007-11-03 09:57:46 +0100
committerThomas Bächler <thomas@archlinux.org>2007-11-03 09:57:46 +0100
commit048c400670a7b539ecfa9d1a7e1ddf2a8777b471 (patch)
treea4659d5783c8be16b679e1ada4e37d516b5e77d9 /functions
parentc1bcfed95fd1e24939cec97e90c4672f8fd78e64 (diff)
downloadmkinitcpio-048c400670a7b539ecfa9d1a7e1ddf2a8777b471.tar.gz
mkinitcpio-048c400670a7b539ecfa9d1a7e1ddf2a8777b471.tar.xz
Fix Archlinux bug #8490, HAS_MODULES was only set if a dependency of
a module is found, not for the module itself.
Diffstat (limited to 'functions')
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index 69f918b..421b85e 100644
--- a/functions
+++ b/functions
@@ -150,9 +150,9 @@ add_module ()
for mod in $(/sbin/modinfo -F depends "${path}" | tr ',' ' '); do
if [ -n "${mod}" ]; then
add_module "${mod}"
- HAS_MODULES="y"
fi
done
+ HAS_MODULES="y"
add_file "${path}" && found=1
done
if [ $found -eq 0 ]; then