[yum-commits] Branch 'yum-3_2_X' - yum/__init__.py

skvidal at osuosl.org skvidal at osuosl.org
Mon Feb 16 20:17:23 UTC 2009


 yum/__init__.py |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 9730a68a416ccb6ddcd40ba90fd51aebba51bdf4
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Mon Feb 16 15:16:08 2009 -0500

    drop rpmdb cached data before posttrans runs so we're not holding onto any
    index info that isn't going to necessarily work.

diff --git a/yum/__init__.py b/yum/__init__.py
index 9334f98..e31ced8 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -959,6 +959,7 @@ class YumBase(depsolve.Depsolve):
                 except (IOError, OSError), e:
                     self.logger.critical(_('Failed to remove transaction file %s') % fn)
 
+        self.rpmdb.dropCachedData() # drop out the rpm cache so we don't step on bad hdr indexes
         self.plugins.run('posttrans')
         return resultobject
 


More information about the Yum-commits mailing list