Description of problem: Just writing "dnf list auto" then I pressed TAB to autocomplete, then the error apperas. Version-Release number of selected component: python-dnf-1.0.0-1.fc22 Additional info: reporter: libreport-2.5.1 cmdline: python2 /usr/lib/python2.7/site-packages/dnf/cli/completion_helper.py list autoremove '' -d 0 -q -C executable: /usr/lib/python2.7/site-packages/dnf/cli/completion_helper.py kernel: 4.0.1-300.fc22.x86_64 runlevel: N 5 type: Python uid: 1000 Truncated backtrace: completion_helper.py:92:run:UnboundLocalError: local variable 'pkgs' referenced before assignment Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/dnf/cli/completion_helper.py", line 189, in <module> main(sys.argv[1:]) File "/usr/lib/python2.7/site-packages/dnf/cli/completion_helper.py", line 185, in main cli.run() File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1077, in run return self.command.run(self.base.extcmds) File "/usr/lib/python2.7/site-packages/dnf/cli/completion_helper.py", line 92, in run for pkg in pkgs: UnboundLocalError: local variable 'pkgs' referenced before assignment Local variables in innermost frame: self: <__main__.ListCompletionCommand object at 0x7f8eefa53350> args: ['autoremove', ''] subcmds: [u'all', u'available', u'installed', u'updates', u'extras', u'autoremove', u'obsoletes', u'recent']
Created attachment 1023728 [details] File: backtrace
Created attachment 1023729 [details] File: environ
Thanks for the report. Igor, can you take a look what's going wrong, please?
https://github.com/rpm-software-management/dnf/pull/310
dnf-1.0.2-2.fc22,hawkey-0.5.9-2.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/dnf-1.0.2-2.fc22,hawkey-0.5.9-2.fc22
Package dnf-1.0.2-3.fc22, hawkey-0.5.9-3.fc22: * should fix your issue, * was pushed to the Fedora 22 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing dnf-1.0.2-3.fc22 hawkey-0.5.9-3.fc22' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-12577/dnf-1.0.2-3.fc22,hawkey-0.5.9-3.fc22 then log in and leave karma (feedback).
dnf-1.0.2-3.fc22, hawkey-0.5.9-3.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.