Bug 2011550 - dnf-plugins-core uses distro.linux_distribution(), deprecated in distro 1.6.0
Summary: dnf-plugins-core uses distro.linux_distribution(), deprecated in distro 1.6.0
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core
Version: 35
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2014563 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-06 19:21 UTC by Otto Liljalaakso
Modified: 2021-10-29 23:10 UTC (History)
10 users (show)

Fixed In Version: dnf-plugins-core-4.0.24-1.fc35
Clone Of:
Environment:
Last Closed: 2021-10-29 23:10:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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