Merge "Exposing the ability to enable/disable the repository"
[apex-tripleo-heat-templates.git] / extraconfig / tasks / yum_update.sh
index 8f80458..a2a04e8 100755 (executable)
@@ -64,6 +64,9 @@ fi
 
 command_arguments=${command_arguments:-}
 
+# Always ensure yum has full cache
+yum makecache || echo "Yum makecache failed. This can cause failure later on."
+
 # yum check-update exits 100 if updates are available
 set +e
 check_update=$(yum check-update 2>&1)