Re: [PATCH] Clean yum caches following preupgrade, too (#503096).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Looks ok to me,

Regards,

Hans


On 07/10/2009 05:29 PM, Chris Lumens wrote:
---
  yuminstall.py |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index 0491fad..31ed4ea 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -1584,7 +1584,7 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon
              repo.dirCleanup()

          # expire yum caches on upgrade
-        if anaconda.id.getUpgrade() and os.path.exists("%s/var/cache/yum" %(anaconda.rootPath,)):
+        if (flags.cmdline.has_key("preupgrade") or anaconda.id.getUpgrade()) and os.path.exists("%s/var/cache/yum" %(anaconda.rootPath,)):
              log.info("Expiring yum caches")
              try:
                  iutil.execWithRedirect("yum", ["clean", "all"],
@@ -1595,7 +1595,7 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon
                  pass

          # nuke preupgrade
-        if flags.cmdline.has_key("preupgrade") and anaconda.id.getUpgrade() and os.path.exists("%s/var/cache/yum/anaconda-upgrade" %(anaconda.rootPath,)):
+        if flags.cmdline.has_key("preupgrade") and os.path.exists("%s/var/cache/yum/anaconda-upgrade" %(anaconda.rootPath,)):
              try:
                  shutil.rmtree("%s/var/cache/yum/anaconda-upgrade" %(anaconda.rootPath,))
              except:

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux