Run yum clean all after installing new ceph-release.

In order to get around the issue of repomd.xml being older than
the previously installed one depending on when the gitbuilder
built the repo.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
This commit is contained in:
Sandon Van Ness 2013-09-05 11:58:27 -07:00
parent 0f63cedd2f
commit d34ba1647f

View File

@ -755,6 +755,11 @@ def _upgrade_rpm_packages(ctx, config, remote, pkgs, branch):
_run_and_log_error_if_fails(remote, args)
_yum_fix_repo_priority(remote, project)
remote.run(
args=[
'sudo', 'yum', 'clean', 'all',
])
# Build a space-separated string consisting of $PKG-$VER for yum
pkgs_with_vers = ["%s-%s" % (pkg, version) for pkg in pkgs]