Bug 1208827 - bad usage of config-manager caused TypeError: unorderable types: Repo() < Repo()
Summary: bad usage of config-manager caused TypeError: unorderable types: Repo() < Repo()
Keywords:
Status: CLOSED DUPLICATE of bug 1208018
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-03 10:36 UTC by Russel Winder
Modified: 2015-04-03 10:58 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-03 10:58:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


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