Bug 1866253

Summary: microdnf does not respect --config option any more
Product: [Fedora] Fedora Reporter: Marek Blaha <mblaha>
Component: microdnfAssignee: Jaroslav Rohel <jrohel>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: amatej, dmach, igor.raits, jrohel, rpm-software-management
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: microdnf-3.5.1-1.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-29 01:25:49 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 Marek Blaha 2020-08-05 08:20:03 UTC
Description of problem:
After the patch https://github.com/rpm-software-management/libdnf/commit/fbcd3ce3e77b2119c2298e89b07a0798a9991e85 was merged the --config option of microdnf does not work any more.
The problem is that the patch caused the /etc/dnf/dnf.conf file is read in dnf_context_init() - before microdnf could set the config path.

Comment 1 Ben Cotton 2020-08-11 15:17:18 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle.
Changing version to 33.

Comment 2 Jaroslav Rohel 2020-08-13 05:28:11 UTC
Prepared fix PR: https://github.com/rpm-software-management/libdnf/pull/1017

Comment 3 amatej 2020-08-18 06:37:34 UTC
Added a test here: https://github.com/rpm-software-management/ci-dnf-stack/pull/864

Comment 4 Fedora Update System 2020-11-27 15:45:40 UTC
FEDORA-2020-210ee4a384 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-210ee4a384

Comment 5 Fedora Update System 2020-11-28 02:55:59 UTC
FEDORA-2020-210ee4a384 has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-210ee4a384`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-210ee4a384

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2020-11-29 01:25:49 UTC
FEDORA-2020-210ee4a384 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.