Bug 1208827

Summary: bad usage of config-manager caused TypeError: unorderable types: Repo() < Repo()
Product: [Fedora] Fedora Reporter: Russel Winder <russel>
Component: dnf-plugins-coreAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jsilhan, mluscon, packaging-team-maint, pnemade, rholy, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-03 10:58:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Russel Winder 2015-04-03 10:36:28 UTC
Description of problem:

I issued the command "dnf config-manager" and got the response:

# dnf config-manager
Traceback (most recent call last):
  File "/bin/dnf", line 35, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 185, in user_main
    errcode = main(args)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 84, in main
    return _main(base, args)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 134, in _main
    cli.run()
  File "/usr/lib/python3.4/site-packages/dnf/cli/cli.py", line 1071, in run
    return self.command.run(self.base.extcmds)
  File "/usr/lib/python3.4/site-packages/dnf-plugins/config_manager.py", line 108, in run
    self.modify_repo()
  File "/usr/lib/python3.4/site-packages/dnf-plugins/config_manager.py", line 144, in modify_repo
    for repo in sorted(matched):
TypeError: unorderable types: Repo() < Repo()

which really isn't the sort of thing that a user should be getting.

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

# dnf --version
0.6.5
  Installed: dnf-0:0.6.5-1.fc23.noarch at 2015-04-01 19:34
  Built    : Fedora Project at 2015-03-31 17:34

  Installed: rpm-0:4.12.0.1-13.fc23.x86_64 at 2015-04-01 19:34
  Built    : Fedora Project at 2015-03-31 10:14

How reproducible:

Completely as at 2015-04-03.

Comment 1 Radek Holy 2015-04-03 10:58:51 UTC
Hello, thank you for the report. This is a duplicate of bug 1208018.

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