summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-07-01 17:38:22 +0200
committerDave Reisner <dreisner@archlinux.org>2011-07-01 21:52:24 +0200
commit712b70757e272e5b41c07a17993ccbb43e7ff84c (patch)
tree0ba2faca91193ac4d721808a81ca437ef303703c
parentb088a105a7aca2f725168393eaee4e6c19cec784 (diff)
downloadmkinitcpio-712b70757e272e5b41c07a17993ccbb43e7ff84c.tar.gz
mkinitcpio-712b70757e272e5b41c07a17993ccbb43e7ff84c.tar.xz
functions: call _add_file directly from add_module
This avoids an expensive stat call and some other unnecessary path juggling. Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index 806ed03..7dfec4c 100644
--- a/functions
+++ b/functions
@@ -193,7 +193,7 @@ add_module() {
return 1
fi
- add_file "${path#$BASEDIR}"
+ _add_file "${path#$BASEDIR}" "$path" 644
ADDED_MODULES+=("${module//-/_}")
# explicit module depends