← Back to team overview

cloud-init-dev team mailing list archive

[Merge] lp:~gholms/cloud-init/yum-clean into lp:cloud-init


Garrett Holmstrom has proposed merging lp:~gholms/cloud-init/yum-clean into lp:cloud-init.

Requested reviews:
  cloud init development team (cloud-init-dev)

For more details, see:

update_package_sources on RHEL calls ``yum update'', which actually upgrades packages on the system.  Thix fix makes it instead call ``yum clean expire-cache'', which will make yum update its repo metadata the next time it runs.
Your team cloud init development team is requested to review the proposed merge of lp:~gholms/cloud-init/yum-clean into lp:cloud-init.
=== modified file 'cloudinit/distros/rhel.py'
--- cloudinit/distros/rhel.py	2012-08-22 18:12:32 +0000
+++ cloudinit/distros/rhel.py	2012-09-18 18:00:28 +0000
@@ -208,7 +208,7 @@
     def update_package_sources(self):
         self._runner.run("update-sources", self.package_command,
-                         ["update"], freq=PER_INSTANCE)
+                         ["clean", "expire-cache"], freq=PER_INSTANCE)
 # This class helps adjust the configobj

Follow ups