[Lunar-commits] <lunar> Correct generating order of create_module_index and create_depends_cache
Peter de Ridder
peter at lunar-linux.org
Mon Jul 9 00:56:25 CEST 2012
commit 56148758c4a8e4a9a73e1363183c1a1587e0895f
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Sun, 08 Jul 2012 15:56:25 -0700
URL: https://github.com/lunar-linux/lunar/commit/56148758c4a8e4a9a73e1363183c1a1587e0895f
Correct generating order of create_module_index and create_depends_cache
---
libs/modules.lunar +7/-4
1 files changed, 7 insertions (+), 4 deletions (-)
--- a/libs/modules.lunar
+++ b/libs/modules.lunar
@@ -145,14 +145,17 @@ function check_module_index() {
create_depends_cache
RESULT=0
else
- if [[ -n "$(find $MOONBASE -type f -name "DEPENDS" -cnewer $DEPENDS_CACHE)" ]]; then
- create_depends_cache
- RESULT=0
- fi
if [[ -n "$(find $MOONBASE -type f -name "DETAILS" -cnewer $MODULE_INDEX)" ]]; then
create_module_index
RESULT=0
fi
+ if [[ -n "$(find $MOONBASE -type f -name "DEPENDS" -cnewer $DEPENDS_CACHE)" ]]; then
+ # the module index needs to be newer
+ # touch will assure this
+ touch $MODULE_INDEX
+ create_depends_cache
+ RESULT=0
+ fi
fi
return $RESULT
)
More information about the Lunar-commits
mailing list