Bug 1205837 - [abrt] dnf: local.py:103:config:KeyError: u'repodir'
Summary: [abrt] dnf: local.py:103:config:KeyError: u'repodir'
Keywords:
Status: CLOSED DUPLICATE of bug 1208614
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:50180b415763aee08b54a691966...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-25 17:47 UTC by George Nikandrov
Modified: 2015-04-03 13:32 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-04-03 13:32:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.26 KB, text/plain)
2015-03-25 17:48 UTC, George Nikandrov
no flags Details
File: dso_list (82 bytes, text/plain)
2015-03-25 17:48 UTC, George Nikandrov
no flags Details
File: environ (3.09 KB, text/plain)
2015-03-25 17:48 UTC, George Nikandrov
no flags Details

Description George Nikandrov 2015-03-25 17:47:59 UTC
Description of problem:
Running dnf with 'local' plugin fails when 'enabled = false' is specified in /etc/dnf/plugins/local.conf

Version-Release number of selected component:
dnf-0.6.4-2.fc22

Additional info:
reporter:       libreport-2.5.0
cmdline:        /usr/bin/python -OO /usr/bin/dnf list *plugins*
executable:     /usr/bin/dnf
kernel:         4.0.0-0.rc4.git0.1.fc22.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
local.py:103:config:KeyError: u'repodir'

Traceback (most recent call last):
  File "/usr/bin/dnf", line 36, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 182, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 84, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 115, in _main
    cli.configure(map(ucd, args))
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1003, in configure
    self.base.plugins.run_config()
  File "/usr/lib/python2.7/site-packages/dnf/plugin.py", line 82, in fn
    dnf.util.mapall(operator.methodcaller(method), self.plugins)
  File "/usr/lib/python2.7/site-packages/dnf/util.py", line 157, in mapall
    return list(map(fn, *seq))
  File "/usr/lib/python2.7/site-packages/dnf-plugins/local.py", line 103, in config
    local_repo.baseurl = "file://{}".format(self.main["repodir"])
KeyError: u'repodir'

Local variables in innermost frame:
local_repo: <Repo _local>
parser: <dnf.plugin.dynamic.local.LocalConfParse object at 0x7f306e5e2b90>
self: <dnf.plugin.dynamic.local.Local object at 0x7f306e5e2850>
conf: <iniparse.compat.ConfigParser object at 0x7f306e5e2950>

Comment 1 George Nikandrov 2015-03-25 17:48:03 UTC
Created attachment 1006405 [details]
File: backtrace

Comment 2 George Nikandrov 2015-03-25 17:48:04 UTC
Created attachment 1006406 [details]
File: dso_list

Comment 3 George Nikandrov 2015-03-25 17:48:05 UTC
Created attachment 1006407 [details]
File: environ

Comment 4 Honza Silhan 2015-04-03 13:32:44 UTC

*** This bug has been marked as a duplicate of bug 1208614 ***


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