Assume modules are changed when not fetching them

This commit is contained in:
T. Joseph Carter 2015-06-17 03:35:37 -07:00
parent f83e25080e
commit 0e1aba00f0

View File

@ -246,12 +246,14 @@ module_process() {
log_module_start $module_varname log_module_start $module_varname
module_revision_old="$(module_get_revision)"
if [[ "$actions" = *fetch* ]]; then if [[ "$actions" = *fetch* ]]; then
module_revision_old="$(module_get_revision)"
if ! module_fetch $1; then if ! module_fetch $1; then
log_module_stop "module_process: Unable to fetch ${module_varname}." log_module_stop "module_process: Unable to fetch ${module_varname}."
return 1 return 1
fi fi
else
module_revision_old="ASSUMED DIFFERENT"
fi fi
module_revision="$(module_get_revision 1)" module_revision="$(module_get_revision 1)"
if [ "0$skip_unchanged" -eq 1 ]; then if [ "0$skip_unchanged" -eq 1 ]; then