Description of problem: Tried dnf gouprerase 'Xfce Desktop' (group name as found through dnf grouplist). Printing all groups in comps.py showed that there is no group named 'Xfce Desktop'. So either dnf uses incorrect source for group information when doing grouperase or grouplist prints incorrect results. Version-Release number of selected component: dnf-0.4.11-1.fc20 Additional info: reporter: libreport-2.1.11 cmdline: /usr/bin/python /bin/dnf grouperase 'Xfce Desktop' executable: /bin/dnf kernel: 3.12.6-300.fc20.x86_64 runlevel: N 5 type: Python uid: 0 Truncated backtrace: #1 _by_pattern in /usr/lib/python2.7/site-packages/dnf/comps.py:62 #2 groups_by_pattern in /usr/lib/python2.7/site-packages/dnf/comps.py:263 #3 group_remove in /usr/lib/python2.7/site-packages/dnf/base.py:1345 #4 removeGroups in /usr/lib/python2.7/site-packages/dnf/cli/cli.py:921 #5 run in /usr/lib/python2.7/site-packages/dnf/cli/commands.py:724 #6 run in /usr/lib/python2.7/site-packages/dnf/cli/cli.py:1456 #7 _main in /usr/lib/python2.7/site-packages/dnf/cli/main.py:122 #8 main in /usr/lib/python2.7/site-packages/dnf/cli/main.py:63 #9 user_main in /usr/lib/python2.7/site-packages/dnf/cli/main.py:240 #10 <module> in /bin/dnf:35
Created attachment 848878 [details] File: backtrace
Created attachment 848879 [details] File: environ
Indeed an issue. Thanks for the report, we'll take a look.
(possibly dupe of bug 1063666) Maciek what happens with dnf-0.4.17 or later when the same command is issued: dnf grouperase 'Xfce Desktop'
Picked this build from koji: https://koji.fedoraproject.org/koji/buildinfo?buildID=502565 [mborzecki@localhost:~]$ sudo dnf grouperase 'Xfce Desktop' Problem with repo 'fedorautils': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried, disabling. Traceback (most recent call last): File "/bin/dnf", line 35, in <module> main.user_main(sys.argv[1:], exit_code=True) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 242, in user_main errcode = main(args) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 64, in main return _main(base, args) File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 124, in _main cli.run() File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1428, in run return self.command.run(self.base.extcmds) File "/usr/lib/python2.7/site-packages/dnf/cli/commands.py", line 732, in run return self.base.removeGroups(extcmds) File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 886, in removeGroups cnt += self.group_remove(group_string) File "/usr/lib/python2.7/site-packages/dnf/base.py", line 1374, in group_remove groups = self.comps.groups_by_pattern(grp_spec) File "/usr/lib/python2.7/site-packages/dnf/comps.py", line 263, in groups_by_pattern return _by_pattern(pattern, case_sensitive, self.groups) File "/usr/lib/python2.7/site-packages/dnf/comps.py", line 62, in _by_pattern matching = [g for g in sqn if match(g.name) or match(g.id)] TypeError: expected string or buffer I think I know the source of the problem. I have RedHat KDE repo added in the system. The groups.xml file may potentially have incorrect data. Take a look at this file: http://mirror.unl.edu/kde-redhat/fedora/20/x86_64/stable/groups.xml Shouldn't _id and _name nodes be named id and name like in other group.xml files?
meanwhile I asked form some input on Fedora-KDE list https://lists.fedoraproject.org/pipermail/kde/2014-March/013190.html
I went ahead and simply removed the group metadata files from kde-redhat repos. As far as I can tell, though, fedora's comps uses the same style with <id>, <_name>, <_description> tags, see: https://git.fedorahosted.org/cgit/comps.git/tree/comps-f20.xml.in
Fixed with several 0.5.0 commits up to 6efc9d6.
dnf-0.5.1-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/dnf-0.5.1-1.fc20
Package dnf-0.5.1-1.fc20, hawkey-0.4.14-1.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing dnf-0.5.1-1.fc20 hawkey-0.4.14-1.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-5937/hawkey-0.4.14-1.fc20,dnf-0.5.1-1.fc20 then log in and leave karma (feedback).
dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/libsolv-0.6.1-1.git6d968f1.fc20,hawkey-0.4.16-1.fc20,dnf-0.5.2-1.fc20,dnf-plugins-core-0.0.8-2.fc20
Package dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing dnf-plugins-core-0.0.8-2.fc20 libsolv-0.6.1-1.git6d968f1.fc20 hawkey-0.4.16-1.fc20 dnf-0.5.2-1.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-6789/libsolv-0.6.1-1.git6d968f1.fc20,hawkey-0.4.16-1.fc20,dnf-0.5.2-1.fc20,dnf-plugins-core-0.0.8-2.fc20 then log in and leave karma (feedback).
dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.