Description of problem: I tried to use dnf copr disable command, but it failed. I enable dnf copr by using: # dnf copr enable pwu/pango Version-Release number of selected component (if applicable): dnf-plugins-core-4.0.6-1.fc29.noarch How reproducible: Try to enable the Fedora copr, then disable the copr. Steps to Reproduce: 1. Enable the Fedora copr by using dnf copr enable pwu/pango 2. Disable the Fedora copr by using dnf copr disable pwu/pango 3. Actual results: Some Traceback printed. Expected results: The Fedora copr repo is disabled. Additional info:
Here are the Traceback log: # dnf copr disable pwu/pango Traceback (most recent call last): File "/usr/bin/dnf", line 58, in <module> main.user_main(sys.argv[1:], exit_code=True) File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 192, in user_main errcode = main(args) File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 64, in main return _main(base, args, cli_class, option_parser_class) File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 99, in _main return cli_run(cli, base) File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 115, in cli_run cli.run() File "/usr/lib/python3.7/site-packages/dnf/cli/cli.py", line 1128, in run return self.command.run() File "/usr/lib/python3.7/site-packages/dnf-plugins/copr.py", line 266, in run self._disable_repo(copr_username, copr_projectname) File "/usr/lib/python3.7/site-packages/dnf-plugins/copr.py", line 521, in _disable_repo self.base.conf.substitutions, {"enabled": 0}) File "/usr/lib/python3.7/site-packages/dnf/conf/config.py", line 198, in write_raw_configfile parser.setValue(section_id, name, value) File "/usr/lib64/python3.7/site-packages/libdnf/conf.py", line 1855, in setValue return _conf.ConfigParser_setValue(self, *args) NotImplementedError: Wrong number or type of arguments for overloaded function 'ConfigParser_setValue'. Possible C/C++ prototypes are: libdnf::ConfigParser::setValue(std::string const &,std::string const &,std::string const &,std::string const &) libdnf::ConfigParser::setValue(std::string const &,std::string const &,std::string const &) libdnf::ConfigParser::setValue(std::string const &,std::string &&,std::string &&,std::string &&) libdnf::ConfigParser::setValue(std::string const &,std::string &&,std::string &&) Additional info: Maybe use the following code helps? self.base.conf.substitutions, {"enabled": "0"})
PR: https://github.com/rpm-software-management/dnf-plugins-core/pull/329
*** Bug 1694872 has been marked as a duplicate of this bug. ***
*** Bug 1696851 has been marked as a duplicate of this bug. ***
*** Bug 1697178 has been marked as a duplicate of this bug. ***
Problem also exists on Fedora 30, FYI
*** Bug 1704436 has been marked as a duplicate of this bug. ***
*** Bug 1704952 has been marked as a duplicate of this bug. ***
*** Bug 1705245 has been marked as a duplicate of this bug. ***
*** Bug 1707572 has been marked as a duplicate of this bug. ***
*** Bug 1711568 has been marked as a duplicate of this bug. ***
dnf-plugins-core-4.0.7-1.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-9be1aa31d1
dnf-plugins-core-4.0.7-1.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-6689a8e2b1
The COPR disable command works fine now after updating to 4.0.7-1 on my FC30 Box.
dnf-plugins-core-4.0.7-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-6689a8e2b1
dnf-plugins-core-4.0.7-1.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-9be1aa31d1
dnf-plugins-core-4.0.7-1.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.
dnf-plugins-core-4.0.7-1.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.
*** Bug 1691965 has been marked as a duplicate of this bug. ***