[yum-cvs] yum/callbacks.py yum/__init__.py
Tim Lauridsen
timlau at linux.duke.edu
Wed Sep 12 15:16:55 UTC 2007
yum/__init__.py | 2 +-
yum/callbacks.py | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit daf7e1dd7b65a91f0f64470bfaaca36db47a6752
Author: Tim Lauridsen <tla at rasmil.dk>
Date: Wed Sep 12 17:15:06 2007 +0200
Make the processTransaction and extra optional parameteres, to make it posible to work with the list of packages to download in the callback.
diff --git a/yum/__init__.py b/yum/__init__.py
index de4f1ca..22d3d6a 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -2222,7 +2222,7 @@ class YumBase(depsolve.Depsolve):
if len(dlpkgs) == 0:
return None
# make callback with packages to download
- callback.event(callbacks.PT_DOWNLOAD_PKGS)
+ callback.event(callbacks.PT_DOWNLOAD_PKGS,dlpkgs)
try:
probs = self.downloadPkgs(dlpkgs)
diff --git a/yum/callbacks.py b/yum/callbacks.py
index d9712f5..e126f54 100644
--- a/yum/callbacks.py
+++ b/yum/callbacks.py
@@ -37,7 +37,7 @@ class ProcessTransBaseCallback:
def __init__(self):
self.logger = logging.getLogger('yum.verbose.ProcessTrasactionBaseCallback')
- def event(self,state):
+ def event(self,state,data=None):
if state in PT_MESSAGES.keys():
self.logger.info(PT_MESSAGES[state])
@@ -45,6 +45,6 @@ class ProcessTransNoOutputCallback:
def __init__(self):
pass
- def event(self,state):
+ def event(self,state,data=None):
pass
More information about the Yum-cvs-commits
mailing list