Bug 1832171 - DeprecationWarning messages when running checks
Summary: DeprecationWarning messages when running checks
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: rpmdeplint
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: František Zatloukal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-06 09:18 UTC by Bruno Goncalves
Modified: 2020-05-24 10:03 UTC (History)
3 users (show)

Fixed In Version: rpmdeplint-1.4-14.fc32
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-24 10:03:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Bruno Goncalves 2020-05-06 09:18:08 UTC
Description of problem:
when running rpmdeplint DeprecationWarning messages are shown, like:

/usr/lib64/python3.8/site-packages/hawkey/__init__.py:348: DeprecationWarning: The class hawkey.Repo is deprecated. Please use dnf.repo.Repo instead. The class will be removed on 2019-12-31.
  warnings.warn(msg, DeprecationWarning)
/usr/lib/python3.8/site-packages/rpmdeplint/__init__.py:249: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  logger.warn('Ignoring pre-existing repoclosure problem: %s', problem_msg)


Version-Release number of selected component (if applicable):
rpmdeplint-1.4-13.fc32.noarch

How reproducible:
100%

Steps to Reproduce:
1.Download rpms from some recent koji build:
koji download-build --arch x86_64 --arch noarch --arch i686 --noprogress --debuginfo knot-2.9.4-1.fc32
2.Run rpmdeplint
rpmdeplint check-repoclosure --repo Fedora-32-repo,https://kojipkgs.fedoraproject.org/compose/branched/latest-Fedora-32/compose/Everything/x86_64/os --repo koji-f32-repo,https://kojipkgs.fedoraproject.org/repos/f32-build/latest/x86_64  --arch=x86_64 *.rpm


Actual results:
# rpmdeplint check-repoclosure --repo Fedora-32-repo,https://kojipkgs.fedoraproject.org/compose/branched/latest-Fedora-32/compose/Everything/x86_64/os --repo koji-f32-repo,https://kojipkgs.fedoraproject.org/repos/f32-build/latest/x86_64  --arch=x86_64 *.rpm
/usr/lib64/python3.8/site-packages/hawkey/__init__.py:348: DeprecationWarning: The class hawkey.Repo is deprecated. Please use dnf.repo.Repo instead. The class will be removed on 2019-12-31.
  warnings.warn(msg, DeprecationWarning)
/usr/lib64/python3.8/site-packages/hawkey/__init__.py:348: DeprecationWarning: The class hawkey.Repo is deprecated. Please use dnf.repo.Repo instead. The class will be removed on 2019-12-31.
  warnings.warn(msg, DeprecationWarning)
/usr/lib/python3.8/site-packages/rpmdeplint/__init__.py:249: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  logger.warn('Ignoring pre-existing repoclosure problem: %s', problem_msg)
2020-05-06 09:16:25,139 rpmdeplint WARNING Ignoring pre-existing repoclosure problem: nothing provides mvn(net.iharder:base64) needed by Java-WebSocket-1.3.8-4.fc31.noarch
/usr/lib/python3.8/site-packages/rpmdeplint/__init__.py:249: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  logger.warn('Ignoring pre-existing repoclosure problem: %s', problem_msg)
<snip>

Expected results:
no DeprecationWarning messages

Comment 1 František Zatloukal 2020-05-20 14:46:11 UTC
rpmdeplint-1.4-14.fc32 should fix the issue. Available from: https://bodhi.fedoraproject.org/updates/FEDORA-2020-c16323079b

Bruno, can you verify and give karma if it works as you need?

Comment 2 Bruno Goncalves 2020-05-21 08:49:23 UTC
Thanks, I did check rpmdeplint-1.4-14.fc32.noarch and the problem seem to be solved.


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