]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
call `yum clean` when installing in RHEL/CentOS 177/head
authorAlfredo Deza <alfredo.deza@inktank.com>
Thu, 10 Apr 2014 16:54:21 +0000 (12:54 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Thu, 10 Apr 2014 16:54:21 +0000 (12:54 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/hosts/centos/install.py

index e677a8a513647ab0b995f86922dcdf844253f2f9..723b3285c66f57a9d0d358cba91c6dab6660b5cb 100644 (file)
@@ -6,6 +6,8 @@ def install(distro, version_kind, version, adjust_repos):
     release = distro.release
     machine = distro.machine_type
 
+    pkg_managers.yum_clean(distro.conn)
+
     # Even before EPEL, make sure we have `wget`
     pkg_managers.yum(distro.conn, 'wget')
 
@@ -98,6 +100,8 @@ def install_epel(distro):
 def mirror_install(distro, repo_url, gpg_url, adjust_repos):
     repo_url = repo_url.strip('/')  # Remove trailing slashes
 
+    pkg_managers.yum_clean(distro.conn)
+
     if adjust_repos:
         process.run(
             distro.conn,
@@ -130,6 +134,8 @@ def repo_install(distro, repo_name, baseurl, gpgkey, **kw):
     _type = 'repo-md'
     baseurl = baseurl.strip('/')  # Remove trailing slashes
 
+    pkg_managers.yum_clean(distro.conn)
+
     if gpgkey:
         process.run(
             distro.conn,