Permalink
Browse files

Correct generating order of create_module_index and create_depends_cache

  • Loading branch information...
1 parent 6ed27e7 commit 56148758c4a8e4a9a73e1363183c1a1587e0895f @cavalier38 cavalier38 committed Jul 8, 2012
Showing with 7 additions and 4 deletions.
  1. +7 −4 libs/modules.lunar
View
@@ -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
)

0 comments on commit 5614875

Please sign in to comment.