FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Kubuntu User

 
 
LinkBack Thread Tools
 
Old 12-18-2008, 09:14 AM
Joel Granados Moreno
 
Default Make anaconda work with new API change in YUM. (#476957)

---
scripts/pkgorder | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/pkgorder b/scripts/pkgorder
index 83c21aa..7722718 100755
--- a/scripts/pkgorder
+++ b/scripts/pkgorder
@@ -43,7 +43,7 @@ class PackageOrderer(YumSorter):
def doFileLogSetup(self, uid, logfile):
pass

- def doLoggingSetup(self, debuglevel, errorlevel):
+ def doLoggingSetup(self, *args, **kwargs):
pass

def setup(self, fn="/etc/yum.conf", root="/", excludes=[]):
--
1.5.6.5

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 12-18-2008, 09:15 AM
Hans de Goede
 
Default Make anaconda work with new API change in YUM. (#476957)

Joel Granados Moreno wrote:

---
scripts/pkgorder | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/pkgorder b/scripts/pkgorder
index 83c21aa..7722718 100755
--- a/scripts/pkgorder
+++ b/scripts/pkgorder
@@ -43,7 +43,7 @@ class PackageOrderer(YumSorter):
def doFileLogSetup(self, uid, logfile):
pass

- def doLoggingSetup(self, debuglevel, errorlevel):

+ def doLoggingSetup(self, *args, **kwargs):
pass

def setup(self, fn="/etc/yum.conf", root="/", excludes=[]):


Looks good to me.

Regards,

Hans

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 12-18-2008, 01:11 PM
Seth Vidal
 
Default Make anaconda work with new API change in YUM. (#476957)

On Thu, 18 Dec 2008, Joel Granados Moreno wrote:


---
scripts/pkgorder | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/pkgorder b/scripts/pkgorder
index 83c21aa..7722718 100755
--- a/scripts/pkgorder
+++ b/scripts/pkgorder
@@ -43,7 +43,7 @@ class PackageOrderer(YumSorter):
def doFileLogSetup(self, uid, logfile):
pass

- def doLoggingSetup(self, debuglevel, errorlevel):
+ def doLoggingSetup(self, *args, **kwargs):
pass

def setup(self, fn="/etc/yum.conf", root="/", excludes=[]):



Here's how doLoggingSetup is written in yum 3.2.20 - it was changed to add
the additional parameters in August of this year.


def doLoggingSetup(self, debuglevel, errorlevel,
syslog_ident=None, syslog_facility=None):
'
Perform logging related setup.

@param debuglevel: Debug logging level to use.
@param errorlevel: Error logging level to use.
'

why does pkgorder need to override doLoggingSetup?

-sv






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

Thread Tools




All times are GMT. The time now is 02:55 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org