[Yum-devel] [PATCH 7/9] Only import history, when needed

James Antill james at and.org
Wed Jun 2 21:40:47 UTC 2010


---
 yum/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/yum/__init__.py b/yum/__init__.py
index d78dba1..c2194e8 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -55,7 +55,6 @@ import plugins
 import logginglevels
 import yumRepo
 import callbacks
-import yum.history
 
 import warnings
 warnings.simplefilter("ignore", Errors.YumFutureDeprecationWarning)
@@ -806,6 +805,7 @@ class YumBase(depsolve.Depsolve):
         """auto create the history object that to access/append the transaction
            history information. """
         if self._history is None:
+            import yum.history
             pdb_path = self.conf.persistdir + "/history"
             self._history = yum.history.YumHistory(root=self.conf.installroot,
                                                    db_path=pdb_path)
-- 
1.7.0.1



More information about the Yum-devel mailing list