Bug 2011550

Summary: dnf-plugins-core uses distro.linux_distribution(), deprecated in distro 1.6.0
Product: [Fedora] Fedora Reporter: Otto Liljalaakso <otto.liljalaakso>
Component: dnf-plugins-coreAssignee: rpm-software-management
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 35CC: amatej, daniel.mach, jmracek, mblaha, packaging-team-maint, pkratoch, praiskup, red, rpm-software-management, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnf-plugins-core-4.0.24-1.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-29 23:10:00 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 Otto Liljalaakso 2021-10-06 19:21:27 UTC
Description of problem:
In version 1.6.0., the 'distro' package deprecated linux_distribution().
The dnf copr plugin uses this function,
causing a deprecation warning to be printed
every time the user calls the plugin.

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

How reproducible:
Always

Steps to Reproduce:
1. $ dnf copr enable foo/bar

Actual results:
A deprecation warning about distro.linux_distribution() is printed,
followed by normal command output.

Expected results:
No deprecation warning is printed.

Additional info:

Comment 2 Otto Liljalaakso 2021-10-07 11:52:53 UTC
The pull request has been merged.
Waiting for upstream release and Fedora package update.
I am not sure what would be the correct status for this bug now.
I will set MODIFIED,
please change it if something else is more appropriate.

Comment 3 amatej 2021-10-11 12:08:31 UTC
Thank you for the patch.

Here the POST state is the right one, we use it to track patches that are merged upstream but not released yet.

Comment 4 Pavla Kratochvilova 2021-10-18 10:33:11 UTC
*** Bug 2014563 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Update System 2021-10-21 08:23:11 UTC
FEDORA-2021-bcda66e5e3 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-bcda66e5e3

Comment 6 Fedora Update System 2021-10-21 19:08:07 UTC
FEDORA-2021-bcda66e5e3 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-bcda66e5e3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-bcda66e5e3

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

Comment 7 Fedora Update System 2021-10-29 23:10:00 UTC
FEDORA-2021-bcda66e5e3 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.