From 048c400670a7b539ecfa9d1a7e1ddf2a8777b471 Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Sat, 3 Nov 2007 09:57:46 +0100 Subject: Fix Archlinux bug #8490, HAS_MODULES was only set if a dependency of a module is found, not for the module itself. --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-24-g4f1b