Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Kubuntu User (http://www.linux-archive.org/kubuntu-user/)
-   -   Make anaconda work with new API change in YUM. (#476957) (http://www.linux-archive.org/kubuntu-user/214083-make-anaconda-work-new-api-change-yum-476957-a.html)

Joel Granados Moreno 12-18-2008 09:14 AM

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

Hans de Goede 12-18-2008 09:15 AM

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

Seth Vidal 12-18-2008 01:11 PM

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


All times are GMT. The time now is 10:35 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.