Yum api changed, follow so that we don't break.

This commit is contained in:
Jesse Keating 2008-08-29 10:55:25 -07:00
parent bc18a1d4f3
commit 9ca05af1e9
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ class PackageOrderer(yum.YumBase):
def doFileLogSetup(self, uid, logfile): def doFileLogSetup(self, uid, logfile):
pass pass
def doLoggingSetup(self, debuglevel, errorlevel): def doLoggingSetup(self, debuglevel, errorlevel, syslog_ident=None, syslog_facility=None):
pass pass
def setup(self, fn="/etc/yum.conf", root="/", excludes=[]): def setup(self, fn="/etc/yum.conf", root="/", excludes=[]):

View File

@ -74,7 +74,7 @@ class PungiYum(yum.YumBase):
self.pungiconfig = config self.pungiconfig = config
yum.YumBase.__init__(self) yum.YumBase.__init__(self)
def doLoggingSetup(self, debuglevel, errorlevel): def doLoggingSetup(self, debuglevel, errorlevel, syslog_ident=None, syslog_facility=None):
"""Setup the logging facility.""" """Setup the logging facility."""
logdir = os.path.join(self.pungiconfig.get('default', 'destdir'), 'logs') logdir = os.path.join(self.pungiconfig.get('default', 'destdir'), 'logs')