Bug 1253237
Summary: | dnf config-manager --setopt options are not saved to repo (--save does not work) | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Edgar Hoch <edgar.hoch> |
Component: | dnf-plugins-core | Assignee: | Michael Mráka <mmraka> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 22 | CC: | jsilhan, jzeleny, mluscon, mmraka, packaging-team-maint, pnemade, red, tim.lauridsen, vmukhame |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | dnf-plugins-core-0.1.15-1.fc23 dnf-plugins-core-0.1.15-1.fc22 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-12-22 21:59:11 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
Edgar Hoch
2015-08-13 09:34:35 UTC
Confirmed it does not work but it worked. We should find whether it's regression in DNF or config-manager itself. dnf-plugins-core-0.1.15-1.fc23 dnf-1.1.5-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-c72cd24fa0 dnf-plugins-core-0.1.15-1.fc22 dnf-1.1.5-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-1bb112ccc6 dnf-1.1.5-1.fc23, dnf-plugins-core-0.1.15-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update dnf dnf-plugins-core' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-c72cd24fa0 dnf-1.1.5-1.fc22, dnf-plugins-core-0.1.15-1.fc22 has been pushed to the Fedora 22 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-2015-1bb112ccc6 dnf-1.1.5-1.fc23, dnf-plugins-core-0.1.15-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. dnf-1.1.5-1.fc22, dnf-plugins-core-0.1.15-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report. Not working again in Fedora23. Exact same problem: ================================================== # dnf config-manager --save --setopt anyreponame.priority=120 # grep prior /etc/yum.repos.d/anyreponame.rpm (no output!) On the same machine: ==================== # yum-config-manager --setopt anyreponame.priority=120 -save # grep prior /etc/yum.repos.d/anyreponame.rpm priority = 120 if dnf config-manager is launched after the latter: =================================================== # dnf config-manager --save --setopt anyreponame.priority=120 # grep prior /etc/yum.repos.d/anyreponame.rpm priority=120 ^^^^^^^^^^^^ Here it removed the spaces in the "priority = 120 line" So it parses the old values and writes them back instead of writing the new ones. # relevant version of dnf components: ===================================== dnf-1.1.9-2.fc23.noarch dnf-conf-1.1.9-2.fc23.noarch dnfdaemon-0.3.16-1.fc23.noarch dnf-langpacks-0.15.1-1.fc23.noarch dnf-langpacks-conf-0.15.1-1.fc23.noarch dnf-plugins-core-0.1.21-2.fc23.noarch dnf-plugin-system-upgrade-0.7.1-1.fc23.noarch dnf-yum-1.1.9-2.fc23.noarch Interesting... For me (F23) neither # dnf config-manager --save --setopt anyreponame.priority=120 nor # yum-config-manager --setopt anyreponame.priority=120 -save works... What works is # dnf config-manager --save --setopt priority=120 anyreponame dnf-1.1.9-2.fc23.noarch dnf-plugins-core-0.1.21-2.fc23.noarch |