summaryrefslogtreecommitdiffstats
path: root/extraconfig/tasks/yum_update.sh
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-07-18 11:51:07 +0000
committerGerrit Code Review <review@openstack.org>2017-07-18 11:51:07 +0000
commita89fb921a1a8948241ca17ed1b92564725eb636a (patch)
treeabb10db10a409fe9b067aa0df9f71fa00ce3dffd /extraconfig/tasks/yum_update.sh
parente57a7cdd733c5edd974749cd21e0563c8c6ca9fa (diff)
parent1a544f66a51579180ead9deadc168d2a1a200719 (diff)
Merge "Ensure yum cache is ready before update"
Diffstat (limited to 'extraconfig/tasks/yum_update.sh')
-rwxr-xr-xextraconfig/tasks/yum_update.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/extraconfig/tasks/yum_update.sh b/extraconfig/tasks/yum_update.sh
index 8f804583..a2a04e8e 100755
--- a/extraconfig/tasks/yum_update.sh
+++ b/extraconfig/tasks/yum_update.sh
@@ -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)