Bug 197603 - yum.conf: debuglevel
Summary: yum.conf: debuglevel
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-07-04 14:37 UTC by Florian La Roche
Modified: 2014-01-21 22:54 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-07-05 16:11:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Use self.conf instead of self.startupconf (803 bytes, patch)
2006-07-05 14:13 UTC, James Bowes
no flags Details | Diff

Description Florian La Roche 2006-07-04 14:37:38 UTC
Description of problem:

If an older yum.conf is present which used to support "debuglevel", then
yum-2.9.2 is giving a traceback. Maybe that setting should be silently
ignored or with a warning that is doesn't have any effect.


Version-Release number of selected component (if applicable):


How reproducible:
Add "debuglevel=2" to /etc/yum.conf.



Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Florian La Roche 2006-07-04 14:52:42 UTC
This actually seems to happen due to "yum -d 1" and not due to the config
settings. cli.py line 196 does not have a self.startupconf:

        if opts.debuglevel is not None:
            self.startupconf.debuglevel = opts.debuglevel
        if opts.errorlevel is not None:
            self.startupconf.errorlevel = opts.errorlevel


Comment 2 James Bowes 2006-07-05 14:13:00 UTC
Created attachment 131928 [details]
Use self.conf instead of self.startupconf

Looks like things got out of sync with the logging patch and some changes to
the config parsing/loading. This patch should fix that up.

Comment 3 Jeremy Katz 2006-07-05 16:11:54 UTC
Committed upstream and in yum-2.9.2-3


Note You need to log in before you can comment on or make changes to this bug.